justinlee - Tuesday, October 25, 2011 10:56 PM:
Hi everybody!
I'm using C# open Word(.doc) and Excel(.xsl, .xslx) in Aras it work complete but I open Word 2007 by C# in aras it not work....
I'm work Aras 9.2
System: Win 7
P/s: Sorry my English
Lee
Brian - Sunday, October 30, 2011 12:57 AM:
Hi Lee,
Because you are on the Server Side when using C# in Aras Innovator you are working under the Web Site. This has some security restrictions that mean using Excel and Word on the server side is either very difficult or nearly impossible.
You can use Excel and Word on the Client side using Javascript and ActiveX Objects.
Look up Open Word from Javascript in google to get some help on doing this.
Cheers,
Brian.
justinlee - Monday, October 31, 2011 9:39 PM:
Hi Brian,
Thanks for reply,
I used to Javascript to open word with ActiveX Object.
But I want open on Server Side by C# function for my jobs required
Lee
p/s: Sorry my English
PeterSchroer - Monday, October 31, 2011 9:53 PM:
There are .NET libraries available to open WORD and EXCEL files. You can use these libraries in a Server Method (C#).
What information do you want from the WORD document? If this is DOCX files, then it is easy to extract the XML for the WORD document, and then using XSLT to extract the data you want from the XML.
--peter