Solved

CFormView - printing and print preview

Posted on 1998-04-08
2
476 Views
Last Modified: 2012-05-04
I have a class derived from CFormView. The dialog resource contains several list boxes. I need to be able to display these list boxes in Print Preview and to print them.
Basically I want to print the complete contents of the client area of the window including lists etc.
I don't want to convert this to a bitmap because of the loss of resolution.

Any Ideas ? ............
0
Comment
Question by:philhand
2 Comments
 
LVL 1

Accepted Solution

by:
perrizo earned 150 total points
ID: 1184124
Hi,

I needed to do almost the same thing a while back and found some pretty good code to look through to print list boxes you can find it at

http://codeguru.com/printing/generic_print_class.shtml

If you download the source and take a look through it I think you'll find everything you need.lots of luck,

Nathan Perrizo
0
 

Author Comment

by:philhand
ID: 1184125
Thanks Nathan!!

   I've downloaded the source code and it looks very promising

Cheers Phil Hand
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

747 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