473,473 Members | 2,138 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Printing problems

I have an application created with VB6 and now I'm converting it to VB 2005.
Conversion is not so simple because printing is so much different.

In my app I have Timer-component, which is creates graphics to printer every
second. After 2 minutes it calls Printer.Enddoc and the result is printed
out. Printing process is on background and I can use my program normally
during this 2 minutes.

Now in VB 2005 if I'm right, whole printing process starts when I call
Printdocument1.Print. Is there some way to send graphics to printer before
that command and then simulate Enddoc-command with this PrintDocument1.Print
command?

Oh, and creating a bitmap or textfile during these 2 minutes is not
suitable, because text should be printed as text and lines as lines, not as
bitmap.

Hopefully somebody understood what I'm trying to explain. Maybe there is a
solution, but I haven't figured it out yet.

-Teemu

Nov 28 '05 #1
2 1812
Teemu wrote:
I have an application created with VB6 and now I'm converting it to VB
2005. Conversion is not so simple because printing is so much different.

In my app I have Timer-component, which is creates graphics to printer
every second. After 2 minutes it calls Printer.Enddoc and the result is
printed out. Printing process is on background and I can use my program
normally during this 2 minutes.

Now in VB 2005 if I'm right, whole printing process starts when I call
Printdocument1.Print. Is there some way to send graphics to printer
before that command and then simulate Enddoc-command with this
PrintDocument1.Print command?

Oh, and creating a bitmap or textfile during these 2 minutes is not
suitable, because text should be printed as text and lines as lines, not
as bitmap.

Hopefully somebody understood what I'm trying to explain. Maybe there is
a solution, but I haven't figured it out yet.

-Teemu


Would launching the printing in a new thread solve you problem? This
would allow your program to function normally while the printing happens
in the background.

Chris
Nov 28 '05 #2
> Would launching the printing in a new thread solve you problem? This
would allow your program to function normally while the printing happens
in the background.


Yes, this could be a solution. Another problem is that I might have two
different documents and those should be printed in one printing job. If I
have for example a user control, which prints a page, how can I hold the
printing job to wait another page?

In my opinion printing with old VB6 was more flexible...

A way to create printing job before printing it out with Print-command, is
that too difficult in new .NET enviroment?

-Teemu

Nov 28 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Programatix | last post by:
Hi, I am working on the PrintDocument, PrintDialog, PageSetupDialog and PrintPreviewControl components of Visual Studio .NET 2003. My developement machine is running Windows XP. There are...
0
by: Programatix | last post by:
Hi, I am working on the PrintDocument, PrintDialog, PageSetupDialog and PrintPreviewControl components of Visual Studio .NET 2003. My developement machine is running Windows XP. There are...
5
by: Mark Preston | last post by:
Admission first - I don't actually have a problem here but have noticed that a lot of people have been asking similar questions and getting very varied answers. What I've done is to sort of...
3
by: Grim Reaper | last post by:
I print mailing labels out of Access 2000 databases about 3 to 4 times a week. I have been having problems with one thing since I have been printing mailing labels. I print mailing labels by...
1
by: G.Esmeijer | last post by:
Friends, I'm (a bit) dissapointed about the printing possibilities in c#. It could also be lack of knowedge. I would like to align a text on the right side of the paper when printing. For...
4
by: Arif | last post by:
I C# code prints very slow as compared to a third party barcode printing software. That software prints approximately 10 labels in 2 seconds while my C# code prints 10 labels in 5 to 6 seconds. And...
4
by: Tracey | last post by:
Hey folks, I have an ASP.NET web app that's working just fine, but a small percentage have two printing problems that don't happen to the vast majority of users. These problems are listed below...
1
by: Dreamtime | last post by:
Hi I am using Visual Studio 2005 and the bundled Crystal Reports (previously I used .net 2003 and bundled Crystal Reports for 2 years - same issues!) I have a report which is displayed in the...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
18
by: Brett | last post by:
I have an ASP.NET page that displays work orders in a GridView. In that GridView is a checkbox column. When the user clicks a "Print" button, I create a report, using the .NET Framework printing...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
1
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...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.