[DUG] dxGetTex and Report Builder.

Willie willie at compliant.co.nz
Tue Jun 30 10:05:08 NZST 2015


An update,  

 

I started from an empty form and copied over components/code snippets from the original unit to see at which point the AV error was introduced, I managed to get the new unit completely built and operating without the AV error being re-introduced (with no obvious differences between the old and new version)….  Mmmmm

 

I would like to know what was actually wrong but it’ll just have to go in the unsolved mysteries box (it’s actually a warehouse) for now.

 

So your stuff  did fix the issue David, thanks very much for that.

 

Cheers

 

 

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 2:44 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] dxGetTex and Report Builder.

 

Hi Willie,

 

Strange. Many of our reports have sub reports and child reports too but we might be using them differently, or perhaps there is some other control you are using which we don’t. I don’t have any other suggestions I’m afraid and the fact that adding those ignores has fixed some AVs suggests you are on the right track.

 

Cheers,

David.

 

 

From: 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 2:25 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] dxGetTex and Report Builder.

 

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>  [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/20150630/e6efa48a/attachment-0001.html 


More information about the Delphi mailing list