Hi,
Ms Word is used in my project for reports so we create the Word document and upload that document In the database in the form of Text sream to use it further to create the report.this part is working perfactly ok on IIS, Now when we create the report we have to read that text Stream change some tags with original data and then send it to client this was done thru word automation and everything was working ok on local machine but when i deploy it on the IIS it does not work>as Microsoft does not support Automation on IIS.
I was looking for infragistics document library and got Infragistic word document , Can i create the document from the stream i have saved in the Database and can travel thru the document and change the data in the infragistic document.
If u can provide any document that will be a great helpNote - we can change the methods by which we are uploading the word template in the database if required.
Hi ashpawan,
Thank you for your reply.
After researching the matter further I believe that in this scenario you would need to devise a way to parse your existing document in order to find the "tags" you want to replace (as the Infragistics Word library is designed for creating documents and does not seem appropriate for looking up elements of existing ones). You may find the discussion useful in this case:
http://stackoverflow.com/questions/1908956/xml-parser-to-read-xml-tags-from-word-file-c-sharp
Please do not hesitate to contact me if you have any questions.
Hi Pater,
I have already gone thru all this links, But my problem is that I have an uploaded word file in the database that i read thru textstream object and uploaded to database.this file act as a template file for reports that means it has some tags that i want to replace with actual data ,Lets say it has companyName with Font blue and Bold now i want to replace this Tag with the "SolutionsOnTheGo" with same text attributes.in the same way we have some tables that we also replace with the actual datarows.here we are not creating the document the document is already available and want some data manipulation way thru findreplace kind of things..Hope i am clear in explaining the requirement...
Thank you for posting in the community.
The IG Word library should be suitable to your needs in this scenario. I suggest that you take a look at the possible approaches for creating a document using the engine:
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.2/CLR4.0/html/Word_Creating_Word_Document_Using_Object_Model_Approach.html
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.2/CLR4.0/html/Word_Create_a_Word_Document.html
You may also find additional information relevant to your implementation at:
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.2/CLR4.0/html/Word_About_Infragistics_Word_Library.html
Please feel free to contact me if you have any questions.