Determine InfoPath Version

H

henniee

Hi

I need to check the InfoPath version (Pre SP1 or SP1) from the xml.
Will I be correct in saying one would check the processing instructions:

Pre SP1
<?mso-infoPathSolution solutionVersion="1.0.0.1" productVersion="11.0.5531"
PIVersion="1.0.0.0" ......

SP1
<?mso-infoPathSolution solutionVersion="1.0.0.4" productVersion="11.0.6250"
PIVersion="1.0.0.0" ......


Thank You
 
B

Brian Teutsch [MSFT]

The product version that lives in the XML won't tell you the whole story.
5531 (V1) and 6250 (SP1) can create identifcal files depending on the Form
Template that is used.. Form Templates created using "V1" can be opened in
SP1, but the XML files will have 6250 as the version stamp.

What are you trying to accomplish? There's probably a more reliable way than
relying on productVersion.

Thanks,
Brian
 
H

henniee

Hi.

I want to programatically add Attachment into a InfoPath file.

I need to know wheter this is a SP1 or pre SP1 infopath document.

If the version is SP1 I need to add the header info ect.

The problem is that I only have the Xml and our workflow product will
execute

on client servers that doest have InfoPath installed.

and the server this executes on doesn't have InfoPath installed.

Thanks

Hennie
 
M

Matthew Blain \(Serriform\)

How will you know where to attach the file? You need to know the schema for
that. Once you know the schema, you'll probably know where in the file to
add the attachment... or that it can't be done.

You can also look for the <?mso-infoPath-file-attachment-present?>, though I
don't know the full rules as to when that will show up or when you can add
it yourself.

--Matthew Blain
http://tips.serriform.com/
 
H

henniee

The attachment XPath will be know to me.
So the only problem I have is to know wherther this is a Pre Sp1 or SP1
InfoPath document.

Where would one find rules for the <?mso-infoPath-file-attachment-present?>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top