Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / July 2006

Tip: Looking for answers? Try searching our database.

Writing to an MS-Word or PDF doc.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jose Cintron - 26 Jul 2006 22:04 GMT
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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.