?
Solved

Problem with Print Info box....!

Posted on 1998-11-05
2
Medium Priority
?
179 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
qizhizhu earned 30 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

752 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