Solved

Printing in a CListView based app?

Posted on 1997-05-19
2
237 Views
Last Modified: 2013-11-19
Hello,

I wrote an application in MFC VC++ 4.0.  The view is CListView based.  How am I to print it?

I do have the following code, generated by the AppWizard --
      void CPrnttstView::OnDraw(CDC* pDC) {
              CPrnttstDoc* pDoc = GetDocument();
                    ASSERT_VALID(pDoc);
            // TODO: add draw code for native data here
      }
as well as the OnPreparePrinting.... OnBeginPrinting.... OnEndPrinting.... empty functions.  

How do I continue?  Can anyone give me a lead to some example of printing a CListView based application?

Any help is most cordially welcomed.
Moshe.
0
Comment
Question by:stolar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
mbhakta earned 50 total points
ID: 1301645
You have to iterate through each item and print it seperately. Alternately , try using Crystal Report to pass the list control items to it. Another way to approach this problem is to create multiple views in a SDI (search for 'Switch' near 'views' in MSDN for an example. Transfer the contents of the listview to the other view before printing and print from that view.
0
 

Author Comment

by:stolar
ID: 1301646
What is Crystal Report?
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Login Script to Copy Folders 12 47
repeatSeparator  java  challenge 13 58
either24  challenge 19 105
Bartender label printing - switch on and off graphics 3 77
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

730 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