473,837 Members | 1,458 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

1 New Member
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 1644
mwalts
38 New Member
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.co m/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
3097
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: every time I execute the Printer.Print command, it the program spools the print job. Restarting my computer did not help. According to everything I've been reading all afternoon, this should not happen. The .Print command simply should draw the text...
3
3421
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 contains more rows of data (like
1
1409
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
4596
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() : Button2.Attributes.Add("OnClick", "javascript:window.print();"); It works well ..... too well actually 'cause it always prints, even when some validation-controls don't pass the validation-test.
0
4134
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 is large and during printing visible area of the screen print ok but the form area which is invisible showing in black. can u suggest some ideas for the same. If u have any solution plz give me logic or code at kishoremungel@yahoo.com regards kishor
3
2190
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 clue? Thanks, martin
0
857
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 form.The problem is that the printed report does not fill the whole paper.How do i fix this?(Currently using VB6)
2
1430
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 the actual form, is there any freeware or built-in tool to do this task? Thanks -- Alex
0
1117
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 printersetting properties of the printform component there is nothing related to scaling. Looking on the internet I didn't find anything about this
0
9843
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10630
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10275
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9407
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7811
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7005
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5670
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5851
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4045
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.