PrintForm in Hight quality

  • Thread starter Thread starter Ciaran O''Donnell
  • Start date Start date
C

Ciaran O''Donnell

I have a Control Printer class on my blog (below) which has a function called
GetControlImage which will give you an image of a control, or in your case a
form.
Then you cant print that image however you want, or it can do it for you.

HTH
 
Hi,
I am designing a business card application, after designing the card which is a windows form, I want to print the form, but the PrintForm prints in poor quality (96 dpi), is there a way to print the form at the same quality of it controls (images for example)?

please help.
 
Thank you for your quick reply, but BitBlt captures the screen in 96 dpi, I want to capture it in high resolution to be printed in high resolution too.
Please help
I have a Control Printer class on my blog (below) which has a function called
GetControlImage which will give you an image of a control, or in your case a
form.
Then you cant print that image however you want, or it can do it for you.

HTH
 
Peter Duniho said:
I don't believe that there's a way using only managed code. But printing
a form is really a poor way to control printing anyway. You would be
better off simply using the data from the form to print explicitly
yourself (using PrintDocument, etc.).

This seems to be the thinking of MS (i.e. the reason why they don't
include a printform method in the framework)....both you and they are
wrong.

Printing the data from the form explicitly is, in a lot of cases,
simply a duplication of effort -- you have already spent time and
effort getting the layout of the controls and labels for your data into
an acceptable state.

Now you're supposed to spend *more* time and effort making a *new*
layout that presents the same data (with appropriate labels)....why?

IME in most cases the form on the screen is a perfectly acceptable
layout, and every second you spend on the new layout and getting it to
print beyond typing in MyForm.Print() is wasted.
 
Peter Duniho said:
You are welcome to your opinion. Suffice to say, I disagree.

In any case, being argumentative and dismissive isn't going to get you
anywhere. If I thought you were open to new ideas, I'd explain your
mistake to you.

Oh, I'm open to new ideas, but it'd have to be some argument to show
that having fewer choices is better than having more choices.

But it's clear you've made up your mind. Good luck with
that.

And you accused me of being dismissive...
 
It will be very nice if you can guide me on any site has samples for printing the form using PrintDocument.
Thanks
Hi,
I am designing a business card application, after designing the card
which is a windows form, I want to print the form, but the PrintForm
prints in poor quality (96 dpi), is there a way to print the form at the
same quality of it controls (images for example)?

I don't believe that there's a way using only managed code. But printing
a form is really a poor way to control printing anyway. You would be
better off simply using the data from the form to print explicitly
yourself (using PrintDocument, etc.).

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top