[DUG] dxGetTex and Report Builder.
Willie
willie at compliant.co.nz
Mon Jun 29 14:24:54 NZST 2015
Thanks heaps for that David,
I’ve added your ignore list (I already had TppDBText,’DataField’ and TppDBRichText,’DataField’ to get it to display stuff properly in the report) but I’m still getting the AV.
I have two reports (separate forms) in the project and one has the AV issue but the other doesn’t (if I exclude all of the ReportBuilder ignores then they both AV). The one that AV’s has a TppSubReport and TppChildReport (which the other one doesn’t) so I’m guessing it’s to do with those classes but can’t work out which properties of these to ignore exactly. I’ve tried DataPipelineName and DataPipeline but it must be something else… keep trying combinations….
From: delphi-bounces at listserver.123.net.nz [mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of David Brennan
Sent: Monday, 29 June 2015 10:42 a.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] dxGetTex and Report Builder.
Hi Willie,
We use GnuGetText and ReportBuilder 14.08 in Delphi 2007/XE3/XE7. Our reports are now datamodule descendants instead of forms but that is a fairly recent change and it worked fine prior to that.
So in datamodule/formcreate we have:
gnugettext.TranslateComponent(Self);
And our GnuGetText initialisation for ReportBuilder is:
//Report Builder
TP_GlobalIgnoreClassProperty(TppField,'FieldName');
TP_GlobalIgnoreClassProperty(TppField,'FieldAlias');
TP_GlobalIgnoreClassProperty(TppPrintable,'DataField');
TP_GlobalIgnoreClassProperty(TppPrintable,'DataPipelineName');
TP_GlobalIgnoreClassProperty(TppPrintable,'UserName');
TP_GlobalIgnoreClassProperty(TppReport,'ArchiveFileName');
TP_GlobalIgnoreClassProperty(TppReport,'TextFileName');
TP_GlobalIgnoreClassProperty(TppCustomReport,'DataPipelineName');
TP_GlobalIgnoreClassProperty(TppCommunicator,'UserName');
TP_GlobalIgnoreClassProperty(TppGroup,'UserName');
TP_GlobalIgnoreClassProperty(TppGroup,'BreakName');
TP_GlobalIgnoreClassProperty(TppCustomText,'Username');
TP_GlobalIgnoreClassProperty(TppMasterFieldLink,'MasterFieldName');
TP_GlobalIgnoreClassProperty(TppMasterFieldLink,'DetailFieldName');
TP_GlobalIgnoreClassProperty(TppRichText,'RichText');
I don’t guarantee this is correct – for example arguably UserName should be translated but we don’t currently use the user designer so we don’t care what the display names of components are.
I can guarantee that we don’t get any AVs using 14.08 though. I don’t think we’ve tried ReportBuilder 15, we did try 16 briefly but we haven’t upgraded to it and its just possible we didn’t play with it enough to notice AVs.
Cheers,
David.
From: <mailto:delphi-bounces at listserver.123.net.nz> delphi-bounces at listserver.123.net.nz [ <mailto:delphi-bounces at listserver.123.net.nz> mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of Willie
Sent: Monday, 29 June 2015 9:46 a.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: [DUG] dxGetTex and Report Builder.
Hi,
I’m doing some translation work using dxgettext, mostly it is working OK but I’m running into issues with ReportBuilder (Delphi XE2 RB 15.04) where I am getting an access violation when running the TranslateComponent() method on the formcreate of the form that has the RB report. The issue seems to arise at the very end of the method where it is “freeandnil”ing the stringlists, specifically the donelist.
I assume it’s just a matter of adding the correct “ignore” reference for dxgettext but I can’t work out what exactly to ignore.
Has anyone got this working, i.e. used dxgettext and ReportBuilder?
TIA
Willie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20150629/9ec3eea0/attachment.html
More information about the Delphi
mailing list