SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TsiLang and FastReport Pdf Export

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
lehd



Joined: 22 Jan 2009
Posts: 4

PostPosted: Thu Jan 22, 2009 12:39 pm    Post subject: TsiLang and FastReport Pdf Export Reply with quote

Hello all.
I use the last version of TsiLang in Delphi 7.
I also use FastReport. My reports have pdf export feature implemented by FastReport components. But I dont use tsilang for reports.
The problem is that after any pdf export tsilang components seem to be corrupted. Some translations become empty, some switch to diff language.

Any ideas?

Thank you.
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Thu Jan 22, 2009 4:36 pm    Post subject: Reply with quote

Hello,

This is really strange. Are you able to reproduce this on simple sample project? Actually, it looks like a problem somewhere in your code.
Back to top
View user's profile Send private message
lehd



Joined: 22 Jan 2009
Posts: 4

PostPosted: Thu Jan 22, 2009 5:20 pm    Post subject: Reply with quote

Hi. Thanks for fast response.
Yes, it is really strange. I tried to reproduce in a sample project but it works fine. In my main project it fails after any kind of export not only pdf.
Any form containing any fastreport with any export will switch to diff language after export. I'm using dispatcher, 1 main tsilang and linked ones all over the app. The translation goes wrong only in one or several form in the call hierarchy. But the dispatcher stays with the correct language and other forms looks fine.
It maybe the code problem like memory faults but the app is stable, all works fine.
Do you have any idea of what kind of problems may corrupt tsilang?

I will try to make a simple sample form inside my app, hoping that it may help to find out the root of the problem.
Back to top
View user's profile Send private message
lehd



Joined: 22 Jan 2009
Posts: 4

PostPosted: Thu Jan 22, 2009 5:40 pm    Post subject: Reply with quote

I tried it. Added one simple form with empty report and pdf export, no tsilang components on this form. All works fine until i run export of this empty report. Then most strings from tsilang are empty while other captions and things like that are switched to different language. Really strange and I cannot imagine how my code can do this.
The problem is that i cannot reproduce it with the very simple project. Maybe the number of translated resource makes sense as my app is rather big, full sil export is about 400k.
Back to top
View user's profile Send private message
lehd



Joined: 22 Jan 2009
Posts: 4

PostPosted: Thu Jan 22, 2009 6:16 pm    Post subject: Reply with quote

I added onlangchange event handler to the one of the linked tsilangs. And saw that every time the form is created the main dispatcher tried to load the file. The filename property is not empty but there is no file with this name and it seems that only this particular linked tsilang becomes empty. I though t that filename property is ignored when there is no file and actually it is like this - all works fine until any fastreport export.
I tried to remove the filename and now it works. Really really strange but it works.

I dont know whether it is a bug or some issue with my app but it is like this.
Maybe this description can be helpful for any reason to somebody.

Anyway, thanks for help.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group