Windows application manipulation word document

  • Thread starter Thread starter Mats-Lennart Hansson
  • Start date Start date
M

Mats-Lennart Hansson

Hi,
I want to create a windows application that takes a .dot file containing one
page, multiplies that page and the saves it to disk as a .doc file. That is,
I want the new document to contain a for example 5 pages that all looks the
same.

I've managed to open a .dot file and save it as a .doc file. But how do I
multiply the page?

Any help is appreciated!

Thanks,
Mats-Lennart
 
Well, you could try doing it in Word first. Open your.dot file, start
recording a new macro, then copy the contents of your page, then paste
it at the end of the first page to create the next page-full of
contents.

Do this a couple of times, then stop recording the macro, open the VBA
editor and see what the macro-recorder wrote. That will show you which
Word objects, methods and properties you should be using from within
C#.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top