#1 2018-01-22 11:45:40

Marcin W.
Member
Registered: 2018-01-22
Posts: 6

problem installing TGDIPages component

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

#2 2018-01-22 14:57:49

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

Re: problem installing TGDIPages component

Sounds like a compiler bug.
Which version are you using?

I tried to circumvent it by https://synopse.info/fossil/info/81c8cc137d

Online

#3 2018-01-22 18:47:34

Marcin W.
Member
Registered: 2018-01-22
Posts: 6

Re: problem installing TGDIPages component

Delphi XE Prof, on Windows 10 Prof.

Offline

#4 2018-01-22 18:50:06

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

Re: problem installing TGDIPages component

I'm not able to reproduce the problem here.

Ensure to re-test it with latest version of the library, i.e. 1.18.4161.

Online

#5 2018-01-22 19:07:04

Marcin W.
Member
Registered: 2018-01-22
Posts: 6

Re: problem installing TGDIPages component

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

#6 2018-01-22 19:16:15

Marcin W.
Member
Registered: 2018-01-22
Posts: 6

Re: problem installing TGDIPages component

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

#7 2018-01-22 19:18:20

Marcin W.
Member
Registered: 2018-01-22
Posts: 6

Re: problem installing TGDIPages component

I forgot to mention, all sample codes linked here:
https://github.com/synopse/SynPDF
work well.

Offline

#8 2018-01-23 09:10:11

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

Re: problem installing TGDIPages component

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

#9 2018-01-23 10:15:47

Marcin W.
Member
Registered: 2018-01-22
Posts: 6

Re: problem installing TGDIPages component

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

Board footer

Powered by FluxBB