borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Change Legend Text in CR8.5)Next Topic (how php/java link to crystal report) New Topic New Poll Post Reply
AndreaVB Forum : Reporting tools : Two language in one field Solved Topic
Poster Message
luckyboy
Level: VB Lord

Registered: 05-05-2005
Posts: 160

icon Two language in one field

hi all. Question:
1. can i put two languages in a field in datareport? if can how?
2. can i put two languages in a colum in listview or flexgrid? if can how?
looking forward to hearing from you

____________________________
Please help out.

02-03-2006 at 08:20 AM
View Profile Send Email to User Show All Posts | Quote Reply
luckyboy
Level: VB Lord

Registered: 05-05-2005
Posts: 160
icon Re: Two language in one field

anyidea please?

____________________________
Please help out.

08-03-2006 at 01:05 AM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: Two language in one field

With MS flexgrid and listview, you cant....
As for the datareport, I personally use crystal report, so I dont know if you can, but you can try storing data in access table, and then try to display this field on datareport. Cant you split data in two columns?

____________________________
If you find the answer helpful, please mark this topic as solved.

08-03-2006 at 04:58 PM
View Profile Send Email to User Show All Posts | Quote Reply
luckyboy
Level: VB Lord

Registered: 05-05-2005
Posts: 160
icon Re: Two language in one field

what is control that can store two language in a column?
please tell me? please? please?

____________________________
Please help out.

09-03-2006 at 01:41 AM
View Profile Send Email to User Show All Posts | Quote Reply
GeoffS
Level: VB Lord


Registered: 29-09-2004
Posts: 536
icon Re: Two language in one field

Hi,
Any control that can contain text can display whatever you want it to say, but you can only put one "Value" for the "Text" property. There is no (standard) control that will do a language translation for you and then display both - you have to do this yourself. So, you need to either store the text in two fields in your database, one in each language, then combine them into one string to display in your control, or save in just one field already combined.
So, for example, if you save in two fields in the database the phrase for "Good Day" in English and Polish then you would display on your report :-

rptTextBox1.Text = rst("English")  & vbCrLf & rst("Polish")

Which would display :-

Good Day
Dzien Dobry


You just need to make sure the size of the control is big enough to display two lines of text.



____________________________
multi-tasking - the ability to hang more than one app. at the same time.

09-03-2006 at 08:53 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Reporting tools : Two language in one field Solved Topic
Previous Topic (Change Legend Text in CR8.5)Next Topic (how php/java link to crystal report) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder