Visual Studio vs Microsoft Word

  • Thread starter Thread starter Radek
  • Start date Start date
R

Radek

Hi, I have got such problem:
in my directory "C:\folder" I have 3 files in MS WORD (having tables, images
etc), these are:
"1.doc", "2.doc", "3.doc".
I want to write an application (could be in C++, Java or C#) which will
merge the contents of files which I will point ie. 1.doc and 2.doc into one
file: "12.doc"

I've just tried to find smth in MSDN help, and in google archive of
programing groups but still I don't know how to do it:(
I found that I can use WORD COM or using VBA (Swierszcz and Konrad ideas)
but still it is not working :(

have U got maybe such problem ?
Could U help me ?

Thank You very much

Best regards
Radek
windows messenger: (e-mail address removed)


czesc,
mam taki problem:
w katalogu C:\katalog znajduj± siê trzy pliki w formacie MS Word wraz z
tabelami, rysunkami itd, s± to:
1.doc
2.doc
3.doc
Chcia³bym aby moja aplikacja (w C++, Java czy C# - w tym potrafilbym reszte
napisac) na ¿adanie user'a zlepila np. zawarto¶æ pliku 1.doc i 2.doc do
jednego pliku MS Word np. o nazwie 12.doc.

MSDN dzia³a tak "cudownie", ¿e nic tam nie mogê znale¶æ, wygooglowaæ te¿ nie
wiele:(
Czy mo¿e kto¶ potrafi³by sobie poradziæ z takim problemem?
Mo¿e macie jakie¶ wskazówki jak to wogóle ruszyæ?
Nawet nie mogê sprawdziæ czy s± jakie¶ biblioteki, bo help nie dzia³a.... :(

Z góry dziêki
Pozdrawiam
Radek
 
Hi Radek,

What exactly is not working? Do you receive an exception when you invoke
Word through COM interop? Does some functionality just not work as expected?
 
With Word, I see two realistic options:

1. Use Interop and the Word programming objects. With the newer version(s),
you can work with XML. Either way, the information on programming word
objects is here:
http://msdn.microsoft.com/library/d...MLCDK/html/cdkIntroDefaultPage_HV01113687.asp

2. Buy a third party component that handles Word documents without the
weight of installing office components. Software Artisans
(www.softartisans.com) has some of the best Office components.

Of the two, I prefer option #2, but the Software Artisans component may be
out of budget. There are probably others. You can also search sourceforge.net
for open source projects that read and write word format. As a final option,
you can get the Office SDK and poke around at the word format yourself (time
consuming, but cheap from a cash layout standpoint).


---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
Back
Top