You searched for the word(s): 12
-
I am not sure why you are getting error.
Can you debug your code and check out on which line you are getting the error and copy paste the error message here please.
Agni
InfoPathDev India
-
Sorry for being late,
Please add a try catch block around ''thisXDocument.UI.Alert(''Hello World'');'' and check out what exception it is throwing.
Steps you follow here are
1. Add ''try catch'' block to the statement.
2. Compile the solution and Publish it.
3. Open the form from sharepoint.
4. Attach Infopath form to your code and put a ...
-
I know one way how to do it in c# or vb.net i.e, Convert.ToBase64String() method, but I have never tried it with an image, I did it with regular files.
Check out if there is a ''Convert'' class in VB6.
Agni
InfoPathDev India
-
Yeah, I have the field correct but changing a vb6 image to base64 I haven't figured out how to do. Any suggestions?
-
Hi Agni:
Following code is populating data in table with buttonClick event, but it is giving error
in OnLoad event. Could you please let me know what changes do I need to make work this code in OnLoad.
____________
Dim oDataSet As New DataSet
Dim lstrQueryXml As String
lstrQueryXml = ...
-
Thank you very much Agni.
-
Hi Idisis,
When you are getting DOM, you are using ''DataObjects'' as a method where as ''DataObjects'' is a property(variable) so your first statement should be
''XDocument.DataObjects[''Test Procedures''].DOM''
Also please check whether you have created your dataconnection to the sharepointlist properly.
NOTE: From here on i will use c# Code ...
-
Hi Walter Gray, Welcome to the board!
I am not sure whether it works but please try it out and let us know if it works.
In your form schema have a field of type ''xsd:base64Binary''.
And convert your image into a base64 format and set that value to the field that you created.
Agni
InfoPathDev India
-
Hi Richard, Welcome to the board.
You made a small mistake in the following statement
total = dom.documentElement.selectSingleNode(''dfs:dataFields/d:dtOrderTracking/@OrderVal'').value; //it is the in this line that causes the error
You are placing ''i'' in between the string as part of the string, but value of ''i'' should go in place of ...
-
Hi Jason,
Welcome to the board.
Write your code in the onload method.
Here is the the method where you need to write your code in
[InfoPathEventHandler(EventType=InfoPathEventType.OnLoad)]
public void OnLoad(DocReturnEvent e)
{
//Write your code here
}
This is the method that executes when the form is loaded.
Note:Above method is ...