rainforestnet / CrystalReportsNinja

A small Windows Console App that loads external Crystal Reports file, takes parameter inputs and export to various format or even print to printer
http://www.rainforestnet.com
93 stars 77 forks source link

Invalid crystal reports file #53

Closed icemastr closed 4 years ago

icemastr commented 4 years ago

I have used Crystal Reports Ninja to print a few reports to PDF. I have a Crystal Report that is an invoice, the original template came with our ERP software and it is fairly complex so recreating it from scratch would be a lot of work. When I try to use Crystal Reports Ninja to save to PDF it gives this error: Exception: Invalid Crystal Reports file Inner Exception:

I have compared a similar invoice report that does work and I do not see any major differences in how things are setup. Are there some settings that might cause this issue that I should check or is there a way to get more detail about why this report is not working?

icemastr commented 4 years ago

Well in Crystal Reports I exported the report to a rpt file instead of just saving it as an rpt file and then it worked. I also had to use this other for of Crystal Reports Ninja. https://github.com/mhertzfeld/CrystalReportsNinja

sunk818 commented 4 years ago

Did you save data to the report? I believe it is under File in the Crystal Report desktop software. I think you need to have it turned off.

icemastr commented 4 years ago

No I did not have the save data to report option enabled.