Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 1st, 2005, 05:56 AM
Registered User
 
Join Date: Apr 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Close Adobe after printing PDF file

Hello,

I have a program which opens and prints attachments. When the user presses the "Print" button, the attachment is printed automatically without Adobe opening. This is what I want to do.
The printing is no problem, but Adobe opens in the background and the taskbar. How do I get rid of that? It just won't close.

Thank you in advance.
 
Old April 1st, 2005, 11:19 AM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Just to clarify: Can you close it yourself?
 
Old April 2nd, 2005, 11:53 AM
Registered User
 
Join Date: Apr 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for your answer.

Yes I can close it myself, but that isn't supposed to happen. Is there a way Adobe does not open?

Thank you.

 
Old April 2nd, 2005, 04:39 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 248
Thanks: 0
Thanked 1 Time in 1 Post
Default

Perhaps if you were to tell us how your program opens and prints the attachments using Adobe it would be easier to find a solution.

If you're Shell-ing to execute the Adobe print, then you can gain access to the Process ID under which Adobe is running. With the Process ID you can use Windows DLL functions to end the process. This can get a bit tricky because you will want Adobe to finish printing before you close it.

If you're creating an object out of an Adobe Reference, e.g. Set objAdobe = CreateObject("???"), then it might be a simple matter of setting that object to Nothing when Adobe has finished printing.

Randall J Weers
Membership Vice President
Pacific NorthWest Access Developers Group
http://www.pnwadg.org
 
Old April 11th, 2005, 01:36 AM
Registered User
 
Join Date: Apr 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for your answer, I found the solution myself by using a timer interval en the fcloseapp function.

Thanks :)

 
Old October 11th, 2011, 05:26 PM
Registered User
 
Join Date: Oct 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by BoardBabe View Post
Thank you for your answer, I found the solution myself by using a timer interval en the fcloseapp function.

Thanks :)
Can you please explain in detail how you did it?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Populate Adobe PDF with html form data bfoley Classic ASP Basics 4 January 17th, 2008 09:44 AM
printing a php file in .pdf format farukcse Pro PHP 0 November 18th, 2007 03:13 PM
Suppressing 'Creating Adobe PDF' dialog zorb Access VBA 1 October 13th, 2004 06:56 AM
Printing to File in VB (Adobe Postscript Driver) SheckJuarez VB How-To 1 July 16th, 2004 12:56 PM
Creating Adobe PDF files from VBA baNTON Access VBA 3 March 11th, 2004 02:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.