Solved

Generating word like reports and saving to PDF

Posted on 2006-11-30
5
215 Views
Last Modified: 2013-11-20
Hi,
I have an application that displays data in chart format and table format. I would like to put this chart and data into a report. Now, this report needs to be shown to the user so that he can edit it, Later, he can do a print preview and finally print it.
I do not want to make it a pre-requisite that Microsoft word should be installed on the client's machine.
I also need to save the report into a PDF file.

Any ideas and sample code about how this requirement can be met.
0
Comment
Question by:VCGuru
5 Comments
 
LVL 22

Accepted Solution

by:
mahesh1402 earned 250 total points
ID: 18044861
May be this is of yours use : The Great PDF - Revealed
http://www.codeproject.com/file/PdfDigiPad.asp

-MAHESH
0
 
LVL 14

Assisted Solution

by:wayside
wayside earned 250 total points
ID: 18048645
> I also need to save the report into a PDF file.

If you can print it, you can write a pdf, you just need to get a pdf printer driver. These are available for free if you search around.

To print it from MFC is always an interesting proposition. I would recommend looking at some projects like these:

http://www.codeproject.com/printing/printingmadeeasy.asp
http://www.codeproject.com/printing/printlib.asp
http://www.codeproject.com/printing/printing_wo_docview.asp

You can probably find some code that will make your job much easier.

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now