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.
William DePalo [MVP VC++] - 27 Jul 2006 00:05 GMT
> 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
David Lowndes - 27 Jul 2006 09:48 GMT
>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
David Wilkinson - 27 Jul 2006 12:46 GMT
> Hello all
>
[quoted text clipped - 5 lines]
>
> 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
Pavel A. - 27 Jul 2006 18:04 GMT
> > Hello all
> >
[quoted text clipped - 12 lines]
>
> 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