You are not logged in.
Pages: 1
Hello!
When I try to install "TGDIPages" component from "mORMotReport.pas" got problems several times, first occurs in line 1914 "TSynSigner = object". When I change "object" to "class", got problems in other lines.
greetings
Marcin
Offline
Sounds like a compiler bug.
Which version are you using?
I tried to circumvent it by https://synopse.info/fossil/info/81c8cc137d
Online
Delphi XE Prof, on Windows 10 Prof.
Offline
I've changed all "object" to "record", now all compiles well, but when I try to install got message:
[DCC Fatal Error] F2092 Program or unit '.mORMotReport' recursively uses itself
Offline
Ensure to re-test it with latest version of the library, i.e. 1.18.4161.
Do you mean Gdiplus.dll? I use 10.0.16299.125.
Offline
I forgot to mention, all sample codes linked here:
https://github.com/synopse/SynPDF
work well.
Offline
AFAICT there is no sample in https://github.com/synopse/SynPDF
1.18.4161 is the version of the framework, from https://github.com/synopse/mORMot
I am not to reproduce your problem, and don't know what is your issue.
Online
I wrote *linked*:
Sample code
In fact, you have at least three ways of generating pdfs using the library:
Directly call of a TPdfCanvas as published by a TPdfDocument instance - this is the most direct but also more difficult way of rendering;
Use regular VCL TCanvas methods thanks to TMetaFile support - see TPdfDocumentGDI.VCLCanvas property and the TPdfCanvas.RenderMetaFile method - this is very easy if you want to use "regular" TCanvas methods to draw the page content, especially if you have some existing printing code;
Use TGDIPages of the supplied mORMotReport.pas unit (extracted from our mORMot ORM/SOA framework) to easily create the content from code, with some report-oriented methods (including complex rtf with TGDIPages.AppendRichEdit) - for basic reporting features, it is pretty much the solution.The 2nd and 3rd ways are preferred, for most applications.
However it works in Delphi 2007 without any changes, and this is more important for me.
Offline
Pages: 1