#1 2011-08-13 22:51:03

julieo00
Member
Registered: 2011-08-12
Posts: 2

Can you use PDF Engine with Borland Database?

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

#2 2011-08-14 11:16:22

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: Can you use PDF Engine with Borland Database?

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

#3 2011-08-15 19:17:33

julieo00
Member
Registered: 2011-08-12
Posts: 2

Re: Can you use PDF Engine with Borland Database?

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

#4 2011-08-16 05:23:47

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: Can you use PDF Engine with Borland Database?

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

Board footer

Powered by FluxBB