• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 183
  • Last Modified:

Problem with Print Info box....!

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
Haho2
Asked:
Haho2
1 Solution
 
qizhizhuCommented:
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
 
sonalchouhanCommented:
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

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now