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. General Programming
  3. C#
  4. Merge Word documents into one file

Merge Word documents into one file

Scheduled Pinned Locked Moved C#
csharpdatabasehelp
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.
  • N Offline
    N Offline
    nisha 2n
    wrote on last edited by
    #1

    Hai.....im anu.. can u ppl help me plzz.......im doing..Merge Word documents into one file...i wrote code lik below...i create a place (D:/destination/new.doc)..wher my documents ill open....in debugging whn i clik on merge button no files showing in "D:/destination/new.doc".... im a fresher 4r dotnet .... hope u ll understnd my lang.... Thanqu .... :) namespace DocMerger { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { List files=new List(); DialogResult dr = new DialogResult(); dr = openFile.ShowDialog(); if (dr == DialogResult.OK) { listView1.Items.Clear(); files.AddRange(openFile.FileNames.ToList()); foreach (string file in files) { listView1.Items.Add(Path.GetFileName(file)); } } } private void button2_Click(object sender, EventArgs e) { DocMerger db=new DocMerger(); string path="D:/source/"; string output="D:/destination/new.doc"; string temp="D:/destination/temp.doc"; db.CopyMerge(temp,path,output); } } }

    C 1 Reply Last reply
    0
    • N nisha 2n

      Hai.....im anu.. can u ppl help me plzz.......im doing..Merge Word documents into one file...i wrote code lik below...i create a place (D:/destination/new.doc)..wher my documents ill open....in debugging whn i clik on merge button no files showing in "D:/destination/new.doc".... im a fresher 4r dotnet .... hope u ll understnd my lang.... Thanqu .... :) namespace DocMerger { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { List files=new List(); DialogResult dr = new DialogResult(); dr = openFile.ShowDialog(); if (dr == DialogResult.OK) { listView1.Items.Clear(); files.AddRange(openFile.FileNames.ToList()); foreach (string file in files) { listView1.Items.Add(Path.GetFileName(file)); } } } private void button2_Click(object sender, EventArgs e) { DocMerger db=new DocMerger(); string path="D:/source/"; string output="D:/destination/new.doc"; string temp="D:/destination/temp.doc"; db.CopyMerge(temp,path,output); } } }

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      anu gunturi wrote:

      im a fresher 4r dotnet .... hope u ll understnd my lang....

      Then why are you doing this instead of something more straightforward ? It looks like you're using a third party component to do this. Where is it not working ?

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      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