You are not logged in.
Pages: 1
I'm working on an application that uses the freeware MWPrintObject component for reporting. Its nice and lightweight and from what's been done does a nice job. My normal approach to producing PDF output is to install a PDF printer driver like PDF995 but I've been asked to enhance this application to not require a driver.
I don't want to have to rewrite all the reports and SynPDF looks as though I can bolt it in to produce PDF.
I've looked at the examples but I'm doing something wrong because I keep crashing the PC.
MWPrintObject can write its output to a canvas so I've given it a bitmap to write to and if I keep things to a single page things work. When I try and produce multiple pages is when I get crashes. I've looked at the examples I can find but no joy.
Is there a way of producing multi page PDFs from multiple instances of a bitmap, or from multiple bitmaps?
Offline
In Canvas compatibility mode, SynPDF is expected to render its pages not from a bitmap, but from a EMF vectorial metafile.
In short, you just draw into a TMetaFileCanvas, then you render it using SynPDF.
The easiest is to look how mORMotReport.pas work, and also TestSQLite3Pages.dpr sample located in "05 - Report created from code" folder.
Offline
Thanks
Offline
Pages: 1