You are not logged in.
Pages: 1
I have an existing application written in D5 and using Quick Report that was written years ago. Since my company is going out of business and I am retiring soon I do not really want to have to change everything over to a new data architecture but my only remaining customer still uses this program and wants me to change it to create PDF invoices instead of printing Quick Report ones.
I downloaded the PDF Engine but not sure how to install it. I tried adding it in as a component but it comes back with an error saying Types.dcu not found. When I tried just adding all the .pas files into the program and compiling it I get an error in SynCommons that says SynVariantTypes not defined when it tries to free them in the final closing paragraph.
What am I doing wrong here?
Thanks
Offline
I didn't make SynPDF Delphi 5 compatible yet.
In fact, SynCommons can be compiled with Delphi 5 (at least the current version from http://synopse.info )
I'll try to make SynPDF compile with Delphi 5.
For instance, you don't need the Types unit.
Offline
I added SynPDF to my project. I used code I found on the forum that you wrote as a sample to someone who also wanted to export a Quick Report to PDF and was able to compile and run the project (I ran it under debug mode and stepped through the code). When it got to the point that it called the paragraph that prepares the quick report and then sends it to the PDF something odd happened. Suddenly the project closed and a new one opened and a new unit was created. There was no code in the unit but it was titled the name of the PDF file I was trying to create.
When I tried running the application outside of Delphi it seemed to just hang up.
Offline
Sounds really odd...
I've never seen something like that.
Do you use Delphi 5?
Does it make the same without using SynPDF? Just use the same code to prepare and print the QuickReport content.
Offline
Pages: 1