cancel
Showing results for 
Search instead for 
Did you mean: 

Error "Invalid Pointer" while exporting to RTF or Word

Former Member
0 Kudos

Hi,

When I try to export a report having just about 20 pages to RTF or Doc format, it fails with error message as "Invalid Pointer". But works fine for comparatively less number of pages. I do have some images in the header and footer of the report.

Please suggest any solution to fix this error.

Thanks,

Ravi.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

You need to provide more details regarding your issue.

What version of Crystal Reports are you using?

Is the error happening in Crystal Reports?

Or is it only happening in a custom application you created?

If it's happening only in the custom application you need to provide additional details about your application.

What language the application is written in?

Is it a Windows or Web application?

Are you seeing the error on your development machine, or just in deployment?

Depending on which version of Crystal Reports you're using have you tested the export in Crystal Reports as well?

Once you post more details about your issue someone may be able to offer some suggestions.

Sincerely,

Dan Kelleher

Former Member
0 Kudos

Here are the details:

What version of Crystal Reports are you using?

Ans: Crystal Reports 2008.

Is the error happening in Crystal Reports?

Ans: No, its happening in my C# application. I am using ReportDocument object model. I get this error when I call the method ReportDocument.ExportReport( ..., ...);

What language the application is written in?

Ans: C#

Is it a Windows or Web application?

Ans: Its a windows application.

Are you seeing the error on your development machine, or just in deployment?

Ans: I am seeing the error on the development machine.

Depending on which version of Crystal Reports you're using have you tested the export in Crystal Reports as well?

Ans: When I export the same 22 page report directly in Crystal Report designer, it is exporting successfully.

Thanks,

Ravi.

former_member183750
Active Contributor
0 Kudos

Make sure you've applied [SP1|https://smpdl.sap-ag.de/~sapidp/012002523100010503722008E/cr2008_sp1.exe] for CR 2008.

Also, see if one of our samples causes the same issue. Samples can be downloaded from here:

https://smpdl.sap-ag.de/~sapidp/012002523100006252722008E/csharp_win_smpl.exe

I'd recommend the export application csharp_win_export.

Ludek

Former Member
0 Kudos

Hi,

Thanks for the suggestion.

I installed SP1 and I also did same as in the samples, but I still got the same error. Could there be any other reasons for this?

Thanks,

Ravi.

former_member183750
Active Contributor
0 Kudos

Could there be any other reasons for this?

- never heard of this before, so - don't know

Have you had a chance to download and run one of our sample apps from the link provided in the earlier post/

Ludek

Former Member
0 Kudos

Yes, I downloaded sample apps and tried with the exact code, but had the same problem still.

I think I found the exact issue with the error. The issue is the size due to images that I have in the header and the footer. I have total four images, two in the header and two in the footer. I removed all the images and exported my 25 pages report to rtf format and it exported fine.

Actual total size of my four images is 260 KB, but when we embed the images into rpt file, the size of rpt file increases to 8 MB. Without the images in the rpt file, size of rpt file is 71 KB.

Why does this happen? That is, when I embed images whose size is in KBs why the size of rpt file is increasing to several MBs?

With images when I export 9 pages to rtf format, the size of rtf file is 48.4 MB. So when we calculate size of 25 pages in rtf format, it should be about 130 MB. So, when I export to rtf which results in a file of size 130 MB, I get "Invalid Pointer" error, my guess.

Can something be done about these issues?

Thanks,

Ravi.

0 Kudos

Hi Ravi,

When you export the report in Crystal Report Designer what is the file size as compared to your application?

Thank you

Don

Answers (0)