Solved

Problem with Print Info box....!

Posted on 1998-11-05
2
165 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

759 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now