This is a migrated thread and some comments may be shown as answers.

Export Excel problem

1 Answer 51 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
hoangphong1702 vu
Top achievements
Rank 1
hoangphong1702 vu asked on 05 Aug 2010, 11:09 AM
Hi
I am using Report Telerik, when i run in local it runs ok.But when i host it i got problem
Line 243:            report.RefreshReport();
Line 244:            ReportProcessor reportProcessor = new ReportProcessor();
Line 245:            RenderingResult result = reportProcessor.RenderReport("XLS", report.Report, deviceInfo);
Line 246:            FileStream fs = new FileStream(tmpFileName, FileMode.Create);
Line 247:            fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Reporting.Excel97.BoundSheet..ctor(String workSheetName) +31
   Telerik.Reporting.Excel97.Workbook.AddBoundSheetRecords(Stream stream, ICollection`1 boundSheetAddresses) +66
   Telerik.Reporting.Excel97.Workbook.WriteWorkBookRecords(Stream stream, ICollection`1 boundSheetAddresses) +1174
   Telerik.Reporting.Excel97.Workbook.Save(Stream stream) +252
..................
Please help me.
Thank you.

1 Answer, 1 is accepted

Sort by
0
Chavdar
Telerik team
answered on 09 Aug 2010, 01:19 PM
Hi hoangphong1702 vu,

Could you please open a support ticket and send us the report definition so that we can take a look at it locally? Does this exception appear only with this report or with any other as well? If possible, let us know how to reproduce the issue.

Sincerely yours,
Chavdar
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
hoangphong1702 vu
Top achievements
Rank 1
Answers by
Chavdar
Telerik team
Share this question
or