a Problem Reporting with Word Document
-
HELLO All Recently i found this article about reporting with word document ,when i used the sample code it's working fine ,but rather plain , what if i want spice my report , i have an already designed word reports ,they are simple forms , when i saved them as XML i got this lengthy xml file ,now of course i have some blank cells , in the reports that i want to fill since the report is basically a table , here comes the headache ,HOW TO GET TO THE PARTICULAR NODE? i have solved this problem in a hard way i wonder if there is a better way DOES ANY1 KNOW AN EASIER WAY TO GET TO THE NODES AND OVERWRITE THEM? ANY GOOD ARTICLE ABOUT THIS TOPIC THANX IN ADVANCE by the way here is the hard solution of mine ,i first read copy xml file into .txt file then read it and indexof() the cell to know where is it exactly i want to insert my data the code would like like this fp = File.OpenText("C:\Documents and Settings\Administrator.RFF-SRV0\Desktop\" & "NoteVactionXML.txt") _ManipulationStr = fp.ReadToEnd() Dim str, resl As String resl = _ManipulationStr Dim index As Integer = 0 str = "" _ & "" _ & "" _ & "" _ & "" _ & "" _ & "" & "خن" & "" _ & "" resl = resl.Insert(548 + 10566, str) fp.Close() strHTMLContent.Append(resl) HttpContext.Current.Response.Write(strHTMLContent) HttpContext.Current.Response.End() HttpContext.Current.Response.Flush() Do i have to do the above for each item? I HOPE NOT
-
HELLO All Recently i found this article about reporting with word document ,when i used the sample code it's working fine ,but rather plain , what if i want spice my report , i have an already designed word reports ,they are simple forms , when i saved them as XML i got this lengthy xml file ,now of course i have some blank cells , in the reports that i want to fill since the report is basically a table , here comes the headache ,HOW TO GET TO THE PARTICULAR NODE? i have solved this problem in a hard way i wonder if there is a better way DOES ANY1 KNOW AN EASIER WAY TO GET TO THE NODES AND OVERWRITE THEM? ANY GOOD ARTICLE ABOUT THIS TOPIC THANX IN ADVANCE by the way here is the hard solution of mine ,i first read copy xml file into .txt file then read it and indexof() the cell to know where is it exactly i want to insert my data the code would like like this fp = File.OpenText("C:\Documents and Settings\Administrator.RFF-SRV0\Desktop\" & "NoteVactionXML.txt") _ManipulationStr = fp.ReadToEnd() Dim str, resl As String resl = _ManipulationStr Dim index As Integer = 0 str = "" _ & "" _ & "" _ & "" _ & "" _ & "" _ & "" & "خن" & "" _ & "" resl = resl.Insert(548 + 10566, str) fp.Close() strHTMLContent.Append(resl) HttpContext.Current.Response.Write(strHTMLContent) HttpContext.Current.Response.End() HttpContext.Current.Response.Flush() Do i have to do the above for each item? I HOPE NOT