473,508 Members | 2,346 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Wait for completion, using IE Print Templates?

Hi,

When using WebBrowser object to print an html page, the ExecWB call
has a nice argument that allows an application to wait for the
completion of the print job. When an app call ExecWB with the right
argument, ExecWB method blocks until the page finishes spooling.

If we pass the argument:
PRINT_WAITFORCOMPLETION(0x02) on the third argument of ExecWB call, it
will block the call until the spooling finishes. It is documented on:

http://msdn.microsoft.com/library/de...ods/execwb.asp

When using IE Print Templates that behaviour is no long possible. Why?
Because the third argument is the path for the print template, so if
we use a print template we loose the ability to pass
PRINT_WAITFORCOMPLETION value.

I tried to use the event PrintTemplateTeardown.....do all work inside
a thread and wait for the thread to die in order to detect the end of
spooling, but it didn't work.

Any solutions?

Best Regards,
Miguel Lopes

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
Jul 21 '05 #1
0 2309

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

Similar topics

0
1606
by: Edvard Majakari | last post by:
Suppose you have a program containing commands and file name parameters. A simple class providing completion could first read all the commands to list, and extend that list later using all file...
67
4193
by: Steven T. Hatton | last post by:
Some people have suggested the desire for code completion and refined edit-time error detection are an indication of incompetence on the part of the programmer who wants such features. ...
9
5869
by: cantelow | last post by:
Hi. I've got a program printing multiple pdf reports, and I need to wait for completion of various associated operations- The pdf printer prints to one file, then I need to copy that where I need...
0
781
by: Rob Reagan | last post by:
Please forgive me if I'm in the wrong newsgroup. My users need to print the contents of the web browser. However, they need custom formatting of the printed pages. I think that Print Templates...
0
309
by: mrnicelife | last post by:
Hi, When using WebBrowser object to print an html page, the ExecWB call has a nice argument that allows an application to wait for the completion of the print job. When an app call ExecWB with...
16
30018
by: Thirsty Traveler | last post by:
I would like to create a test harness that simulates multiple concurrent users executing an individual thread. I would like this to be determined at runtime when the user specifies the number of...
4
7108
by: sadc1986 | last post by:
How does one introduce multiple worksheets in a excel using Xslt Transforms my code... Please suggest <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"...
9
2323
by: Lukasz Mierzejewski | last post by:
Hi, I need help with pydev code completion... Let's assume that we have something like this: class One: def fun(self): return 1 class Two: li =
3
1858
by: Dirk Loss | last post by:
Hi, I want to have tab completion in my program for interactive input. Using readline and rlcompleter this works nicely. But I also have to catch and modify all "print" output, so I redirect...
0
7324
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
7382
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...
1
7042
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...
0
7495
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
5052
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
3193
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
3181
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
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.