T
TJ
First of all, I am not designing infopath form from SQL
server.
As you know, in the infopath form, after you filled out
the form, you can save it as XML file.
This is one example of saved XML file.
PART A is just indicator that I put to make you understand
better...
<?xml version="1.0" encoding="UTF-8"?>
------ PART A ----------------------
<?mso-infoPathSolution solutionVersion="1.0.0.65"
productVersion="11.0.6357" PIVersion="1.0.0.0"
href="file:///C:\A.xsn" name="urn:schemas-microsoft-
comffice:infopath:A:-myXSD-2004-08-24T18-27-40" ?><?mso-
application progid="InfoPath.Document"?><my:myFields
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:my="http://schemas.microsoft.com/office/infopath/2003
/myXSD/2004-08-24T18:27:40"
xmlns:xd="http://schemas.microsoft.com/office/infopath/2003
" xml:lang="en">
---- PART A END --
<my:Quantity_01>1</my:Quantity_01>
....
</my:myFields>
From this saved XML file, I can open the infopath form
with the saved data.
Here is what I want...
I would like to generate like this saved XML file from my
SQL server data so that this generated XML file can be
opend in infopath program.
I would think that I can write code for data part
xml....,however, how am I supposed to generate the PART A
part? I think that without generating PART A, infopath
program cannot recognize whether this xml file is for
infopath program or not...
Should I write "HARD-CODED" manually for PART A? Or is
there any functionality that I can use to generate PART A
automatically in the C# .NET?...If so, how I can use the
functionality so that I can focus to generate only for my
own form data?
I hope you can understand my issue...
Thank you in advance.
...................................TJ
server.
As you know, in the infopath form, after you filled out
the form, you can save it as XML file.
This is one example of saved XML file.
PART A is just indicator that I put to make you understand
better...
<?xml version="1.0" encoding="UTF-8"?>
------ PART A ----------------------
<?mso-infoPathSolution solutionVersion="1.0.0.65"
productVersion="11.0.6357" PIVersion="1.0.0.0"
href="file:///C:\A.xsn" name="urn:schemas-microsoft-
comffice:infopath:A:-myXSD-2004-08-24T18-27-40" ?><?mso-
application progid="InfoPath.Document"?><my:myFields
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:my="http://schemas.microsoft.com/office/infopath/2003
/myXSD/2004-08-24T18:27:40"
xmlns:xd="http://schemas.microsoft.com/office/infopath/2003
" xml:lang="en">
---- PART A END --
<my:Quantity_01>1</my:Quantity_01>
....
</my:myFields>
From this saved XML file, I can open the infopath form
with the saved data.
Here is what I want...
I would like to generate like this saved XML file from my
SQL server data so that this generated XML file can be
opend in infopath program.
I would think that I can write code for data part
xml....,however, how am I supposed to generate the PART A
part? I think that without generating PART A, infopath
program cannot recognize whether this xml file is for
infopath program or not...
Should I write "HARD-CODED" manually for PART A? Or is
there any functionality that I can use to generate PART A
automatically in the C# .NET?...If so, how I can use the
functionality so that I can focus to generate only for my
own form data?
I hope you can understand my issue...
Thank you in advance.
...................................TJ