Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. a Problem Reporting with Word Document

a Problem Reporting with Word Document

Scheduled Pinned Locked Moved ASP.NET
databasexmlhelptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alaminfad
    wrote on last edited by
    #1

    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

    E 1 Reply Last reply
    0
    • A alaminfad

      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

      E Offline
      E Offline
      Estys
      wrote on last edited by
      #2

      you are a very bold person :) I am assuming you have an xml-document : .Net has some classes you want : XmlReader and XmlDocument. A search for those terms should give you plenty articles to read.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups