Writing to an MS-Word or PDF doc.

J

Jose Cintron

Hello all

I have a program that parses 5 XML documents and from there it needs to
write a report. At the moment the report is being written as a flat ASCII
file, but managers want the output to have pretty pictures and colors (damn
managers). Which libs can I use to write to an MS-Word and/or PDF file?
I'm using Visual C++ 2005 to write my code.

TIA for any pointers.
 
W

William DePalo [MVP VC++]

Jose Cintron said:
Which libs can I use to write to an MS-Word and/or PDF file? I'm using
Visual C++ 2005 to write my code.

Not many of the regulars of this group do much Office development. That
said, I think you want to do a search for Visual Studio Tools for Office
(VSTO). Alternatively you can take a look at this

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=459132&SiteID=1

or post again in one of the Office developer groups.

Regards,
Will
 
D

David Lowndes

I have a program that parses 5 XML documents and from there it needs to
write a report. At the moment the report is being written as a flat ASCII
file, but managers want the output to have pretty pictures and colors (damn
managers). Which libs can I use to write to an MS-Word and/or PDF file?
I'm using Visual C++ 2005 to write my code.

Perhaps the best way of writing your document into Word would be to
drive Word through its automation interfaces.
Regarding PDF, you could install a PDF printer driver product and just
output via GDI. Alternatively I think there are libraries available to
create PDF files - Google.

Dave
 
D

David Wilkinson

Jose said:
Hello all

I have a program that parses 5 XML documents and from there it needs to
write a report. At the moment the report is being written as a flat ASCII
file, but managers want the output to have pretty pictures and colors (damn
managers). Which libs can I use to write to an MS-Word and/or PDF file?
I'm using Visual C++ 2005 to write my code.

TIA for any pointers.

Jose:

If your original data is in XML, have you thought of using XSLT to
convert it to XHTML, which you can then display in any browser?

David Wilkinson
 
G

Guest

David Wilkinson said:
Jose:

If your original data is in XML, have you thought of using XSLT to
convert it to XHTML, which you can then display in any browser?

David Wilkinson

A great idea. Even without xslt - html gives you tables, colors, styles,
pictures;
then you can convert it to pdf or word, or .mht.

--PA
 

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

Top