Skip to Content
0
Former Member
Feb 24, 2011 at 04:17 PM

Unhandled COMException: Invalid Pointer

30 Views

Hello everyone,

The company that I'm working for has a need for their crystal reports to be exported to .PDF files with the hyperlinks being maintained. A little experimentaion has show that exporting to .rtf then converting to .pdf will maintain the hyperlinks well enough.

I've been tasked with creating an application that does just that. It exports to temporary .rtf files, converts those files to .pdf then removes the temp file. I currently have it working, with one exception. I get an 'Unhandled COMException: Invalid pointer exception on the export command of relatively small files.

I've done some reading on the forums, and this issue seems to have been around for a while... but I can't find a solution. What I find odd is that the other people who have seen this error usually report it happening while exporting files with 4000-5000 pages, and tons of images. The largest file that I am trying to export has 111 pages, with a small 1X3 inch logo at the top of each page.

Now, if I remove the logo, it exports fine. But still, people have reported being able to export reports with thousands of images and pages before. I don't know why I'm having such an issue with less than 200 pages.

One issue that I've faced that may be contributing to this is that I have to use Visual C# 2010 Express Edition. The Crystal reports SDK doesn't work with the express edition, so I've been manually adding the references as I need them. I have a licensed copy of Crystal Reports 2008, and I found the DLLs on my local drive. I don't think that they're the most recent libraries, though, as I can only use them with a target .net framework of 2.0.

I was hoping that someone out there could point me in the direction of where I can find the most recent libraries. I've tried to get them by installing 'Crystal Reports for Visual Studio 2010', but it can't install on an express edition of VS. I think that this may solve some of my troubles... that being said, if anyone out there knows of an alternate solution, I'd love to hear from you.

Thanks for your time,

- Scott