Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / November 2007

Tip: Looking for answers? Try searching our database.

Change Form Language with Managed Code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Deniz Yalman - 09 Nov 2007 09:26 GMT
Hi,

I'm trying to do multilanguage infopath 2007 forms via forms services. So i
will publish these forms over browser.

There are different ways to do multilanguage capable forms. My method is
adding a querystring (ie: Lang=en-US) to form url and handle it with managed
code. Then change form's view programmatically according to handled
querystring.

But i have a problem. I can change custom texts but cannot change forms
language (tools > form options > browser category > [Form language])
programmatically. This situation cause to half-translated forms. I want to
create fully translated forms via managed code.

Is there any way to do this?
Thanks in advance.
S.Y.M. Wong-A-Ton - 21 Nov 2007 05:30 GMT
I don't think you can programmatically change the Form Language setting. In
addition, this language setting is used when the form is initialized. So even
if you change the culture of the thread that a form is running on after the
form has been opened, the language of the form in toolbars and dialog boxes
will not change, since the Initialize event already took place. The only way
I currently see possible is to create a separate site for each language you
want to localize the form in and publish the form to each site. To switch
between languages, switch between sites. If you find a better solution, let
us know!
---
S.Y.M. Wong-A-Ton

> Hi,
>
[quoted text clipped - 13 lines]
> Is there any way to do this?
> Thanks in advance.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.