Solved

Print a CFormView

Posted on 1998-08-07
7
246 Views
Last Modified: 2013-11-20
I´m a newbie in MFC and I would like some help in printing a CFormView. In my CFormView I´ve got three editboxes, two of them are singlelined and the third are Multilined, with Enter and Tab key working as they should. Now the question I´ve gor are how do I print whats on the screen, is it possible to print exactly whats shows on the screen. I would like the code written out please.....
Thanx...
0
Comment
Question by:joakimf
  • 4
  • 3
7 Comments
 
LVL 23

Expert Comment

by:chensu
ID: 1320370
0
 
LVL 1

Author Comment

by:joakimf
ID: 1320371
I´m sorry I didn´t make my self clear enough, I wnat to print ONLY what shows in my editboxes I don´t want the form printed out.
0
 
LVL 1

Author Comment

by:joakimf
ID: 1320372
I´m sorry I didn´t make my self clear enough, I want to print ONLY what shows in my editboxes I don´t want the form printed out.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 23

Accepted Solution

by:
chensu earned 70 total points
ID: 1320373
Call CWnd::Print on the editboxes (CEdit is derived from CWnd) with the printer DC.
0
 
LVL 1

Author Comment

by:joakimf
ID: 1320374
Maybe you can help me with the code I´m not so good at MFC yet. Where and how do I write the code??
Thanx...
0
 
LVL 23

Expert Comment

by:chensu
ID: 1320375
Sorry, I don't have enough time to write code for you and I don't have readymade code too.

>Where and how do I write the code??
It is up to you to put it anywhere. Look into the documentation for CWnd::Print. That's not too difficult.
0
 
LVL 1

Author Comment

by:joakimf
ID: 1320376
Alright thanx anyway.....
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Folder Comparison 12 53
Macro to save highlighted rows as a separate file 5 41
MaxSpan challenge 9 79
Change to event 1 100
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 …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

919 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

20 Experts available now in Live!

Get 1:1 Help Now