473,409 Members | 1,983 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

Is there a way to print my data instead of PrintForm?

1
I'm looking for a way to print stuff from my program. I have searched and searched for a way to print and the only thing I have found is PrintFORM which only takes a picture of the form and prints it in image quality which is really really bad quality.

Is there any way to print the text off my form the way it looks and everything? Like how PrintForm prints but instead printing the text in "text quality" and the images in image quality?

Im writing a program that has textboxes over an image and I need to be able to print it with high quality so the text isn't blurred or anything. Like when you print a HTML page etc.. The images are in image quality but the text is very clear etc.. Hopefully you guys know what I am trying to say.


More Information:

I just want to be able to print like Notepad/Word prints.. You can insert an image and have text and everything and the text prints out in fine quality but the image just prints in a decent quality depending on your printer.. I dont care about the image quality as much as i do the text.

I've tried making it into a webpage then printing but i cant print the background image of a webpage..

I've tried messing around with Infopath but it doesn't seem like it does anything i can use.

Any help would be extremely appreciated.

Or if you know of any other way i should do this program let me know.. Like if anyone knows how to make it so i can actually Print just the text but be able to format the text in a specific way so when it prints out it prints in the area i want on a piece of paper that already has stuff on it.
May 24 '07 #1
1 1623
mwalts
38
I'm looking for a way to print stuff from my program. I have searched and searched for a way to print and the only thing I have found is PrintFORM which only takes a picture of the form and prints it in image quality which is really really bad quality.

Is there any way to print the text off my form the way it looks and everything? Like how PrintForm prints but instead printing the text in "text quality" and the images in image quality?

Im writing a program that has textboxes over an image and I need to be able to print it with high quality so the text isn't blurred or anything. Like when you print a HTML page etc.. The images are in image quality but the text is very clear etc.. Hopefully you guys know what I am trying to say.


More Information:

I just want to be able to print like Notepad/Word prints.. You can insert an image and have text and everything and the text prints out in fine quality but the image just prints in a decent quality depending on your printer.. I dont care about the image quality as much as i do the text.

I've tried making it into a webpage then printing but i cant print the background image of a webpage..

I've tried messing around with Infopath but it doesn't seem like it does anything i can use.

Any help would be extremely appreciated.

Or if you know of any other way i should do this program let me know.. Like if anyone knows how to make it so i can actually Print just the text but be able to format the text in a specific way so when it prints out it prints in the area i want on a piece of paper that already has stuff on it.
Have you looked at the PrintDocument class? That with the Begin Print, Print Page and End Print events will do what you need for positioning, although it might take some math to get you there, and some trial and error to get the printing in the right spot.

Here are some resources, but I'm sure there are better ones out there
http://www.ondotnet.com/pub/a/dotnet/2002/06/24/printing.html

http://www.java2s.com/Code/CSharp/GUI-Windows-Form/PrintEvents.htm

I haven't worked with the PrintDocument class in a while (about 2 1/2 years I think), I remember thinking it was a heck of a lot of work to get things right, so that might not be what you need.

If you break up the image you need to print out into parts around the textboxes I think PrintDocument will let you print those out too, which is a bit less of a kludge then some of the things you were suggesting. I'm looking forward to what everyone else thinks, and good luck.


-mwalts
May 24 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Rob | last post by:
I'm having a problem with the printer for a program I've created. I have to recreate a data table on a page to be printed. Earlier today it worked fine; however, I am now having an odd problem:...
3
by: babu | last post by:
Hello All, How are you? I am facing an issue to print all the form control values (including datagrid values). Is there a way to print all the control values in VB.NET. If the grid...
1
by: auhagen | last post by:
Does anyone have an example of how to emulate this VB6 code? Printer.Orientation = 1 PrintForm Printer.EndDoc Thanks...
3
by: cmrchs | last post by:
Hi, how can I execute a window.print() (in javascript) on a ASP-button control but only when all validation-controls on the page pass the validation-test. I tried using in the Page_Load() :...
0
by: mungelwar | last post by:
Hi friend, I need to print picturebox or form in vb6, which contain other controls & user controls. I used several methods like capture screen or printform method but the form size which i m using...
3
by: =?Utf-8?B?bWFydGluMQ==?= | last post by:
All, I created window form application, has one Print button on the form, when hit the button, then print this form. I know vb6 use me.printform, but for vb.Net I don't know how, anyone has...
0
Talihomz
by: Talihomz | last post by:
Hi all.I am creating a program and opted to use randomfiles to store data.For reports,i have created a form that looks lie a report and it has data. Am using "printform" to print the data on the...
2
by: Alex | last post by:
Hi, We're creating a winform application, and I'd like to print out the actual forms from within VS2005 without having to Build and run the code. Short of making screenshots and cropping out...
0
by: Screaming Eagles 101 | last post by:
Hi, I use the Microsoft Powerpack Printform 1.0 component, which I am satisfied of, only 1 question, my printer can handle scaling, but I don't know how to set this. Looking over the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.