• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 263
  • Last Modified:

Print a CFormView

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
joakimf
Asked:
joakimf
  • 4
  • 3
1 Solution
 
joakimfAuthor Commented:
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
 
joakimfAuthor Commented:
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
chensuCommented:
Call CWnd::Print on the editboxes (CEdit is derived from CWnd) with the printer DC.
0
 
joakimfAuthor Commented:
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
 
chensuCommented:
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
 
joakimfAuthor Commented:
Alright thanx anyway.....
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now