-
After you've added the file as a 2DS, save out the form as its source files, locate those files, and use a text editor to open the .xsd file with the name of your 2DS.
Locate the <xsd:element> node with a name= attribute that corresponds to your picture field, and change the type= attribute to xsd:base64Binary
Resave the file, ...
-
Hello Kevin,
That error is caused by having .NET 3.5, but I believe the remedy is to ensure the machine has the latest Office service packs (I believe this issue was fixed in SP2). Could you make sure that is the case?
-
You can also create and use a separate InfoPath form to produce your XML with a repeating group containing pictures and their related data, then save out and use that XML as your secondary data source. You will probably still need to modify the 2ds schema in your main form to indicate the field as base64, like Hilary says.
-
Code that uses the SharePoint object model has to be run directly on the server or you will get a FileNotFound exception. A better practice, if possible, is to use the SharePoint web services, which do not have that restriction.
-
Hello Ged,
What is the specific error you are receiving? Are you opening the XSN from SharePoint, or from DBXL? If you're opening it from SharePoint, do you have your Submit connection set up to provide a value for the documentType parameter?
-
Does your form recognize the field as a DateTime datatype? If so, you should be able to use the TextBox property dialog to specify the format that you want.
-
Could you show me one of these examples that use Clone()?
Even with the operations in the right order, making copies of nodes to fill in a repeating table is not a very good approach. qRules' Insert command uses a much more robust approach, and I suggest checking that out.
The below should work:foreach (DataRow dRow in ...
-
What kind of data source is field 1 coming from?
-
Clone() doesn't create a copy of the node. You need to use InsertAfter() first, then select the newly-created node. Also, you need to be using relative XPaths, not absolute ones.
-
Could you post your modified code?