Telerik Forums
Reporting Forum
1 answer
599 views
My application needs to support both A4 (210mm * 297mm)  and Letter (215.9mm * 279.4mm).

One way to deal with this issue is to draw in an area of 210 * 279.4, so that it fits in both A4 and Letter.

Using Telerik I set my report to this size and designed the report. When I tried to print it my printer did not print complaining that the size was not correct. I needed to set the report size to A4 for the printer to print.

Is this a potential problem? If yes, how can it be resolved?

Also, can you suggest any other way to be able to design in both A4 and Letter (short of designing two separate reports)

Thanks,
John


Hinata
Top achievements
Rank 1
 answered on 13 Nov 2014
1 answer
160 views
Hi,

I have a web app and a class library. My wep app include my class library.
On the page load of my default.aspx web form, i set the datasource of my report.

Here is the code ( this.FolhaCargaCollection contains a List with 72 items):

protected void Page_Load(object sender, EventArgs e)
{
    ClassLibrary1.Report.FolhaCarga report = new ClassLibrary1.Report.FolhaCarga();
    report.DataSource = this.FolhaCargaCollection;
 
    Telerik.Reporting.InstanceReportSource reportSource = new Telerik.Reporting.InstanceReportSource();
    reportSource.ReportDocument = report;
 
    this.ReportViewer1.ReportSource = reportSource;
    ReportViewer1.RefreshReport();
}

Then i have done this:
Create new a report inside my class library (ClassLibrary1)
Add a ObjectDataSource, then select the collection and select "No data source member". Then finish.
On my report, i have set DataSource property to my new ObjectDataSource.

Then i hit F5 key and all work. I got all my 72 items listed.

Then i have done this:
Create new a report inside my class library (ClassLibrary1)
Add a ObjectDataSource, then select the collection and select "No data source member". Then finish.
On my report, i add a new table.
In Table wizard, i select the ObjectDataSource, then selected all properties to the table. Then finish.

I changed my page load to load the right report, then hit F5 key. What happens next is that i saw the headers of my table repeated 72 times, without data.

Is there any way that this can work, using the variable "this.FolhaCargaCollection" as the source of my report?

Thanks in advance.
Nasko
Telerik team
 answered on 13 Nov 2014
2 answers
218 views
Hi.
I am working in a solution that cosume .tdrx reports which are hosted in a FTP server, but when I pass the Uri to the ReportSource of the ReportViewer, I get this error: "Invalid URI: Invalid port specified."

I have tried adding the port number in the Uri String, but still getting the same error.
I also tried adding a parameter to the UriReportSource, but still getting the same.

Which is the right way to do this?
KS
Top achievements
Rank 1
 answered on 12 Nov 2014
1 answer
87 views
Support,

We'd like to change our ASP.NET site to use Telerik Reporting.  Currently, we have a dynamic report using SQL Server and user controls (repeaters) that populate asp:label's with data.  We'd like to do the same logic but put everything into a Telerik ad hoc report (without having to create a TRDX file) - so do all of the logic in code.  How would we go about this task?

Cean
Hinata
Top achievements
Rank 1
 answered on 12 Nov 2014
1 answer
53 views
We are using this version of ACP.NET AJAX -  2012.1.411.40 but Reporting is version - 4.1.10.714.
Because we will have to make significant changes to the portion of our application using AJAX we are NOT ready to upgrade to the latest version.
...and, we want a third party developer to use our Reporting module (part of DevCraft Complete) to develop our reports that point to an SQL database that is an extract of our Application.

Sooo...can we upgrade Reporting ONLY and extend our license to the third party developer to do the work for us without upgrading AJAX?
Hinata
Top achievements
Rank 1
 answered on 12 Nov 2014
1 answer
214 views
I have managed to create my first report with Telerik fairly quickly, after battling for several weeks with SSRS.

Anyway, I am trying to make my report prettier and wanted to enclose certain fields in a box. For the life of me I cannot find such functionality.

Also is it possible to define a default border for my report, where the border matches the border defined by the margins of the report.

Thanks,
John
Stef
Telerik team
 answered on 10 Nov 2014
3 answers
825 views
Dear telerik support team,

i have a telerik report wich i need to show my customer's logo, is there a way to i pass a byte[] to a picture box through report parameters?


Report novoReport = (new GCReport.Sistema.CadastroBairro());
       List<BairroInfo> list = new List<BairroInfo>();
 
       if (this.IdCidade > 0)
       {
           list = (new BairroBLL()).ConsultarPorIdCidade(this.IdCidade).
               OrderBy(obj => obj.NomeBairro).
               OrderBy(obj => obj.Cidade.NomeCidade).OrderBy(obj => obj.Cidade.Estado.NomeEstado).
               OrderBy(obj => obj.Cidade.Estado.Pais.NomePais).ToList(); ;
       }
       novoReport.ReportParameters["Rodape"].Value = Resources.Label.Rodape;
       novoReport.ReportParameters["GeradoPor"].Value = Resources.Label.GeradoPor;
       //CRED.Usuario.Pessoa.Foto = Byte[] from sql database
 //Image parameters = string type / multivalue = false
       novoReport.ReportParameters["Image"].Value = CRED.Usuario.Pessoa.Foto;
 
       novoReport.DataSource = (new ReportContainer<BairroInfo>(list[0]));
 
 
       rvBairro.Report = novoReport;
       rvBairro.RefreshReport();

On my Telerik Report:
this.pictureBox1.Value = "= Parameters.Image.Value";


Thx,
Hinata
Top achievements
Rank 1
 answered on 07 Nov 2014
2 answers
55 views
I cannot get a report to bind to the Open Access.

- I have created an Open Access Data Source. (with no parameters defined, ObjectContextMember = 'Projects')
- I have set my datasource of the report to the datasource I have created.
- I have created a report parameter with Name = 'ProjectId', Text = 'ProjectId', Value = 'A7F93FDF-24F6-4B6C-A63F-2C067050A8DF'
- I have placed a textbox on to my report to just output the 'Id' and 'Name' of the project.

I am not sure how to take my defined parameter and apply it to 'Projects' to have it return the correct 'Project'.
Hinata
Top achievements
Rank 1
 answered on 07 Nov 2014
15 answers
396 views
So, on Azure with 2 or more web roles, using the REST API and HTML viewer, do I have to enable database caching, as they don not share a file system? Also, I dont want to use ASP.NET session state, this is a pure MVC WebAPI app.
Stef
Telerik team
 answered on 07 Nov 2014
2 answers
140 views
Hi,

if I add a CrossTab or a List in a Group Footer it work using all details instead of only group details.
Why? Exists a workaround.

Thanks,
marc.
Stef
Telerik team
 answered on 06 Nov 2014
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?