Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old April 1st, 2005, 04:56 AM
Registered User
 
Join Date: Apr 2005
Location: , , Belgium.
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.
Reply With Quote
  #2 (permalink)  
Old April 1st, 2005, 10:19 AM
Friend of Wrox
 
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Just to clarify: Can you close it yourself?
Reply With Quote
  #3 (permalink)  
Old April 2nd, 2005, 10:53 AM
Registered User
 
Join Date: Apr 2005
Location: , , Belgium.
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.

Reply With Quote
  #4 (permalink)  
Old April 2nd, 2005, 03:39 PM
Friend of Wrox
 
Join Date: Nov 2004
Location: Seattle, WA, .
Posts: 248
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #5 (permalink)  
Old April 11th, 2005, 01:36 AM
Registered User
 
Join Date: Apr 2005
Location: , , Belgium.
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 :)

Reply With Quote
  #6 (permalink)  
Old October 11th, 2011, 05:26 PM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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?
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Populate Adobe PDF with html form data bfoley Classic ASP Basics 4 January 17th, 2008 08:44 AM
printing a php file in .pdf format farukcse Pro PHP 0 November 18th, 2007 02: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 01:41 AM



All times are GMT -4. The time now is 09:35 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.