Solved

Problem with Print Info box....!

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Opening Remote & Local Data Connection 2 57
Getting warning: You are about to delete 1 row(s) 9 48
How to make an ADE file by code? 11 83
Child Form in front 4 46
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…

776 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