Telerik Forums
Reporting Forum
3 answers
295 views
Hi,

I have a web application that generates a report and sends it to the browser.
Everything works fine when I export as PDF, but when I try to export as DOCX, it returns an error:
'Object reference not set to an instance of an object.'.
I guess I'm missing something then.
My project has the following Telerik DLL's in the BIN folder:
  • DocumentFormat.OpenXml.dll
  • Telerik.Reporting.dll
  • Telerik.Reporting.OpenXmlRendering.dll

I've included a screenshot of the code that errors.
Steve
Telerik team
 answered on 21 Sep 2011
2 answers
672 views
Hi All,

I have a question for binding syntax of the report list control. I set the datasource of my report code behind and can now read the values with e.g. [=Fields.Name]. Now i have a list control in my report and have to insert a binding expression for the collection which can be found in the datasource. So what is the Syntax to bind to the property e.g. Datasource.Adresses and get the Values from Adress to display them in a textbox located in the list control.

Best regards Markus
Brad Harrison
Top achievements
Rank 1
 answered on 21 Sep 2011
1 answer
136 views
Hello,
I've got an object defined as

public int ID {get;set;}
public List<Dummy>Oggetti {get;set;}

public class Dummy
{
public int Numero {get;set;}
public string Descrizione {get;set;}
}

How do I bind the list<dummy> to the detail? considering that I' need to bind the ID field of the main object to the main report?
Thanks

Paolo
Peter
Telerik team
 answered on 21 Sep 2011
3 answers
212 views
Is it possible to display multiple instances of a report in one ReportViewer?
We create Invoices every week for customers.  Each week a customer may receive multiple Invoices.
The customer would like to see all of the Invoice Reports in one scrollable window, and not use Report Parameters.

I have tried binding a ListBox to a List<Report> and to a List<ReportViewer>.
I have not tried solving this using Sub Report yet.

Thank you for any suggestions.
Charlie
Steve
Telerik team
 answered on 21 Sep 2011
1 answer
225 views
Hey Telerik-Support-Team,

I am wondering, is there a way to detect in code when the navigate back button was pressed?

The problem is that I'd like to programmatically add Headers and Footers to a report. This is currently triggered in the need datasource event of the report. It seems that when the report is cached and the back button is pressed the need data source event is not fired (as its already databound). I'd like to circumvent this behavior to add the header and footer elements regardless.

I noticed that for a picturebox the need datasource event is fired even if the user navigates back to a report.

Thank you for your help,

Regards,
Kristoffer Witt
Peter
Telerik team
 answered on 21 Sep 2011
2 answers
262 views
I need an example of how to allow users to view a report with a default date range and allow them to change the start and end dates outside the ReportViewer with SilverLight 4/ Reporting 2010 Q2 SP1/ RIA Domain Data Sources. 
Right now I just need this to work , but project team that I'm on uses MVVM but from what I understand from other posts binding is not posible (please correct me if this is wrong). 
Alexander
Top achievements
Rank 1
 answered on 21 Sep 2011
1 answer
145 views
Hello!
I have a code snipplet to create a pdf and send by mail.. but got OutOfMemory when I try to render...
Here's the code:

string strNomeAnexo = prefixoAnexo.ToString() + ".pdf";
                    Assembly assReport = Assembly.Load("CentralPaulista.Report");
                    object objReport = assReport.CreateInstance(strRelatorio);
                    if (strNomeParametro.Count > 0)
                    {
                        strNomeAnexo = prefixoAnexo + strParametro[0] + ".pdf";
                        int intCont = 0;
                        foreach (string parametro in strNomeParametro)
                        {
                            (objReport.GetType().GetProperty("ReportParameters").GetValue(objReport, null) as ReportParameterCollection)[parametro].Value = strParametro[intCont];
                            intCont++;
                        }
                    }
                    IReportDocument objDoc = (IReportDocument)objReport;
                    ReportProcessor processor = new ReportProcessor();    
                      
                    RenderingResult result = processor.RenderReport("PDF", objDoc, null); //Here's the Exception
                     
 
                    MemoryStream arquivo = new MemoryStream(result.DocumentBytes, true);

Any other way I can create this Report?
Thanks!
          
Peter
Telerik team
 answered on 20 Sep 2011
2 answers
451 views
Hi,
I want to export the telerik report to a pdf file with the browser download option where user is given the option to Open or Save. I searched for it but couldnt find the right code for it though i have implemented it by exporting it to a pdf file and saving it on local host or client machine which is as http://www.telerik.com/help/reporting/programmatic-exporting-report.html. But this is not what i want.
I want the similar functionality as the Export link in report viewer.
How can i achieve this. Please help.
Jaspreet
Top achievements
Rank 1
 answered on 20 Sep 2011
1 answer
106 views

Hi,

Would like to know , Does Telrik  reports with Wnforms have support for localization of fallowing languages with Right To Left formating support.

Arabic
Czech
Danish
Dutch
English
Estonian
Finish
French
German
Greek
Hungarian
Italian
Latvian
Norwegian
Polish
Portuguese
Rumanian
Russian
Spanish
Swedish
Turkish
Ukraine
China

Thanks

Steve
Telerik team
 answered on 20 Sep 2011
1 answer
290 views
Hello,

Please do let me know the maximum no. of pages supported by the telerik reporting tool...

Thank You
Massimiliano Bassili
Top achievements
Rank 1
 answered on 20 Sep 2011
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?