Solved

Problem with Print Info box....!

Posted on 1998-11-05
2
169 Views
Last Modified: 2010-04-30
Hi,
  When printing, I have a pop up print info box and shows the progress and also a CANCEL button to cancel printing.
Code :
     frmPrint.show
     ' print coding
     unload frmprint  
My problem is that the frmprint shows up like it is suspended and it doesn't respond to any input/clicks until it is unloaded. This might be because the main form is geting the focus since the printing code loop is executing.
So I showed frmPrint as vbmodal as it pops up clearly and accepts all clicks ( eg. cancel) BUT it doesn't close down at all by itself. I believe this is becasue control is tranferred to the frmPrint (vbmodal  and the code doesn't resume back to the main form until the vbmodal form is closed. How do I solve this?
I tried Winapi's like Bringwindowtotop but there is no diff.

Thanks!! ( and sorry, lack of points )


0
Comment
Question by:Haho2
2 Comments
 

Accepted Solution

by:
qizhizhu earned 10 total points
ID: 1443464
Try WINAPI32 to get the frmPrint.show active first, then get the button focus. I need WINAPI32 somthing like GetActiveWindows or CurrentWindows function (Look for VB Help for detail) to get active window.

Regards

Qizhi zhu
0
 

Expert Comment

by:sonalchouhan
ID: 2224582
hi

does the print coding tell yiou how MANY PAGES WERE PRINTED

IF SO PL SEND THE CODE TO ME

I AM IN NEED I WANT TO KNOW THE NO OF PAGES PRINTED BY THE PRINTER


THANKS

U CAN MAIL ME AT
sonal_chouhan@hotmail.com
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB6 Compile Compatibility Issue 4 116
using Access 8 76
VB6 - Convert HH:MM into Decimal 8 63
Send outlook email from VBS Script 2 46
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question