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

Home Posts Topics Members FAQ

Using API to print in WinForms

Hi All.

I have noticed the System.Drawing is toooooooooooooooooooooo slow. I did
some tests in VB6 using APIs, printing the same pictures, and I got very,
powerful and awesome difference of speed.

( 8^U ) <== my astonished face
Anyone know how can I print in .Net WinForms using Windows API?

Cesar

Nov 21 '05 #1
2 1696
In article <ev**************@TK2MSFTNGP14.phx.gbl>, Cesar Ronchese wrote:
Hi All.

I have noticed the System.Drawing is toooooooooooooooooooooo slow. I did
some tests in VB6 using APIs, printing the same pictures, and I got very,
powerful and awesome difference of speed.

( 8^U ) <== my astonished face
Anyone know how can I print in .Net WinForms using Windows API?

Cesar


The declare statement still exists in VB.NET - so, pretty much the same
way as you did in VB6. The major difference is the datatype
declarations will be different in VB.NET, since in VB.NET Integer is
32-bit and Long is 64-bit. If you need help post a couple of your VB6
API declares, and I'm sure someone can help you get started :)

--
Tom Shelton
Nov 21 '05 #2
Yeah, I know. What I need to know is how to get the DC of a WinForm. You
know how can I do that?

Cesar
"Tom Shelton" <to*@YOUKNOWTHEDRILLmtogden.com> wrote in message
news:uL**************@TK2MSFTNGP09.phx.gbl...
In article <ev**************@TK2MSFTNGP14.phx.gbl>, Cesar Ronchese wrote:
Hi All.

I have noticed the System.Drawing is toooooooooooooooooooooo slow. I did
some tests in VB6 using APIs, printing the same pictures, and I got very,
powerful and awesome difference of speed.

( 8^U ) <== my astonished face
Anyone know how can I print in .Net WinForms using Windows API?

Cesar


The declare statement still exists in VB.NET - so, pretty much the same
way as you did in VB6. The major difference is the datatype
declarations will be different in VB.NET, since in VB.NET Integer is
32-bit and Long is 64-bit. If you need help post a couple of your VB6
API declares, and I'm sure someone can help you get started :)

--
Tom Shelton

Nov 21 '05 #3

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

Similar topics

2
14942
by: Ruchi Gupta | last post by:
I want to print a C# form by pressing button on the form. It will print the contents of the form as well with the form layout. Any suggestions Thanks, Ruchi *** Sent via Developersdex...
11
3758
by: Doug Thews | last post by:
I've been working on some samples that use BeginInvoke/EndInvoke. In one example, I call BeginInvoke and pass it an AsyncCallback function pointer. I was messing around with ReaderWriterLocks and...
1
1402
by: Shardool Karnik | last post by:
Hi, I have an ASP.NET page that sends a request to the server to generate some html on the fly and print it through the server. Once the request comes in, the page is generated. I have a...
1
3333
by: Pablo | last post by:
Folks, i'm working with windows forms, in a local application. What i need to do is to print an HTML file or receive the html code and send it to printer with the corresponding formatting. If u...
4
1046
by: project | last post by:
hi friends, I want to print an invoice with out open crystal report . what I mean to say that i want to give direct print print commad with out open crystal report .. pls anybody knows this...
10
3051
by: Martin Hughes | last post by:
Hi guys, I was wondering if anyone could give me some advice. I am looking to develop an ASP.NET application that will enable several workstations to access real time telemetry data received...
10
8815
by: S_K | last post by:
Hi, I have a directory full of a number of .PDF files that I need to print. Is there any simple way to do this? Using PdfReader purhaps? Thanks in advance. Steve
23
4458
by: raylopez99 | last post by:
Here I am learning WinForms and two months into it I learn there's a WPF API that is coming out. Is this WPF out yet, and is it a threat to WinForms, in the sense that all the library routines I...
0
8406
by: =?Utf-8?B?RnJhbmsgVXJheQ==?= | last post by:
Hi all I have problems printing a .rdlc report directly to the printer. I have created such a report without Datasource, I just fill some parameters in this report. With the ReportViewer I am...
0
7119
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
6989
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
7157
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
7367
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...
0
5453
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,...
0
4579
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
3088
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...
1
644
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
285
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.