Wonderflub
asked on
Convert XML to pdf and\or doc
I don't work much with XML and am brand spanking new to java (never took a class, don't have any basics, I have worked with VB for years) and I have been asked to use InfoPath and VS .Net to convert XML files to pdf and doc format. THus far I have figured out that I need to use XslTransform, but that is as far as I can figure. Can anyone help me out with a code sample in javaScript to illustrate how this is done. I woulod greatly appreciate it. Thanks.
ASKER
I was asked ot use the built in functionality of VS .Net and office 2k3. There isn't a simple way to do this using built in code?
ASKER
ok, how about a point in the right direction. In my research I have found people say that I can't use xslTransform and I have to use msxml. Is this true, should I be walking down this path instead. This is all a lot for me to learn in a short amount of time and I htink my head is spinning, can anyone make it stop :-).
Seriously though, any help?
Seriously though, any help?
ASKER
WHat about this..... would this work
<SCRIPT LANGUAGE="JScript">
var objDial = Server.CreateObject('Stone broom.XSLT ransform') ;
var strStatus; // to hold the status message
var strXMLFile = '/data/xml/myfile.xml'; // the XML source file
var strXSLFile = '/data/xsl/myfile.xsl'; // the XSL style sheet file
var strOutFile = '/results/myfile.doc'; // path and name for the resulting disk file
blnWorked = objTransform.TransformXML( strXMLFile , strXSLFile, strOutFile, strStatus);
Response.Write(strStatus);
</SCRIPT>
for at leas tthe doc file????
<SCRIPT LANGUAGE="JScript">
var objDial = Server.CreateObject('Stone
var strStatus; // to hold the status message
var strXMLFile = '/data/xml/myfile.xml'; // the XML source file
var strXSLFile = '/data/xsl/myfile.xsl'; // the XSL style sheet file
var strOutFile = '/results/myfile.doc'; // path and name for the resulting disk file
blnWorked = objTransform.TransformXML(
Response.Write(strStatus);
</SCRIPT>
for at leas tthe doc file????
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok, so I HAVE to use FOP, I will have to try to figure out how to do that.
They have asked me to just create a generic transform engine that will automate the process, so I am no longer looking at one singular file, but many. If the script language is JScript for the infopath forms, do I have to use Java, or can I create a transform engine in VB?
They have asked me to just create a generic transform engine that will automate the process, so I am no longer looking at one singular file, but many. If the script language is JScript for the infopath forms, do I have to use Java, or can I create a transform engine in VB?
ASKER
ok, I am going to start a new question, since I am now asking more than one thing and diverting to a different direction.
here's a good general link http://blogs.msdn.com/dotnetinterop/archive/2005/03/04/385184.aspx