-
Hi, I have the following code that I am using to create a new Form with data from xmlPath using the template in templatePath. When I execute the code as it is below, I get an error: Script error, the parameter is incorrect''.
Sub generateTestResults_OnClick(eventObj)
xmlPath = ''C:\temp\CRS_51606_page_check_output.xml''
templatePath = ...
-
thisXDocument.SetDirty(false); will make sure that save dialog does not come up.
To disable design mode for the users, go to tools->FormOptions->Check ''Enable protection''.
-
There are already lot of forums regarding this, please search you will definitely find an asnwer.
-
Try this i.ToString(); it should work.
-
Yes it is necessary to have .net 1.1 framework if your solution has custom code.
InfoPath 2003 Toolkit for Visual studio.NET is not necessary on the clients machine, if it is there on the developers machine it should work.
-
Hello Eric,
Rules run first and then Custom code.
XDocument.Save();
Saves the form, but saving form through code requires you to give full trust to the solution.
-
Hello, Welcome on board!
You need to write code to add the optional section into the view.
you need to have this code in the OnAfterChange event of the checkbox.
-
Yes you can change the html page in between using some code,
HTMLTaskPane taskPaneObject = (HTMLTaskPane)thisXDocument.View.Window.TaskPanes[0];
taskPaneObject.Navigate(taskPaneName);
taskPaneObject.Visible = true;
-
Hello Kamal,
InfoPath is not the right tool for reporting. You look for SQL reporting rather.
If the purpose is print, you can set ''Header'' and ''Footer'' at ''View->Header and Footer->Print Settings''.
Table Header cannot be repeated in every page in InfoPath.
-
Hi Zaphi,
The following code should work for you.
var objField1 = XDocument.DOM.selectSingleNode(''//my:myFields/my:field1''); //Get the node
XDocument.View.SelectText(objField1); //SelectText method takes the focus to ''field1''.