-
try this and this
-
try
NewForm.View.SwitchView("View2")
EDIT: It seems views are not loaded uptill this point so can not be changed, however there might be some cool workaround which i dont know
-
What do I need to install to get the designer working in VS2010 ? When converting a project from 2008 to 2010 I get the msg "Infopath Form Template projects are not supported in this release of Visual Studio"
-
I have an IP 2003 form with C# code. I would like to add a button that will open up a new form in a different view.
I am using the following code:
XDocument NewForm = thisApplication.XDocuments.NewFromSolution(@"C:\Users\Lawson\Desktop\Switch View.xsn");
thisXDocument.View.SwitchView("View 2");
This code opens a new form, ...
-
-
why dont you debug your template and find out what is going wrong, to debug
save a copy of your submitted form on your machine,
open the form template in design mode
in the form -> preview -> preview settings -> form name give specify the saved form.
open the code of the form and put debug points in the submit code and press f5. and ...
-
check this i think we resolved it in that thread
-
Hi. Thank you for your reply. I have even changed the database fields to decimal (from both tables where the primary key resides and in the one where it migrates). I am using sql server 2008 express as database; i have no double there to choose. The same problem. If it is text it works but i cannot use autoincrement on the primary key, and ...
-
try converting m_userId to double
Convert.ToDouble (m_userId)
-
string attachedFile = thisXDocument.DOM.selectSingleNode("/my:myFields/my:field1").text;
Encoding _encoding = Encoding.Unicode;using (MemoryStream _memoryStream = new MemoryStream(Convert.FromBase64String(attachedFile)))
{BinaryReader _theReader = new BinaryReader(_memoryStream);
byte[] _headerData = _theReader.ReadBytes(16);int ...