473,385 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Printing pdf files from Access 2000

For about a year I have been printing pdf files from Access 2000 using
the
ShellExecute Me.hWnd, "print", FileName, "", 0, SW_SHOWNORMAL
We normally print, from 1 to 100 engineering documents in this way.

Now I would like to intermingle (Collate) the pdf files with the
Access reports:
i.e. Access Report - pdf file - Access Report - pdf file

When I loop though the list of reports - pseudo code here:
For I = 1 to 10
stDocName = List(I)
DoCmd.OpenReport stDocName, acViewNormal
ShellExecute Me.hWnd, "print", stDocName , "", 0, SW_SHOWNORMAL
' Time delay
Next I

All of the Access reports print out before any of the pdf files.
I tried putting a time delay after the Shell command but no matter how
long the delay, the Access reports all print first. Again I would
like them to alternate.

Is there any way I can stall successive Access reports until the
pdf files have been queued?
Thanks,
Hank Reed
Nov 12 '05 #1
1 2960
On 11 Jan 2004 07:31:12 -0800, ha********@aol.com (Hank Reed) wrote:
For about a year I have been printing pdf files from Access 2000 using
the
ShellExecute Me.hWnd, "print", FileName, "", 0, SW_SHOWNORMAL
We normally print, from 1 to 100 engineering documents in this way.

Now I would like to intermingle (Collate) the pdf files with the
Access reports:
i.e. Access Report - pdf file - Access Report - pdf file

When I loop though the list of reports - pseudo code here:
For I = 1 to 10
stDocName = List(I)
DoCmd.OpenReport stDocName, acViewNormal
ShellExecute Me.hWnd, "print", stDocName , "", 0, SW_SHOWNORMAL
' Time delay
Next I

All of the Access reports print out before any of the pdf files.
I tried putting a time delay after the Shell command but no matter how
long the delay, the Access reports all print first. Again I would
like them to alternate.

Is there any way I can stall successive Access reports until the
pdf files have been queued?
Thanks,
Hank Reed


Try the Sheel and Wait code from -
http://www.mvps.org/access/api/api0004.htm
Wayne Gillespie
Gosford NSW Australia
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jeff Harbin | last post by:
I've got an ACCESS 2000 application that I'm developing. One of the outputs of this app will be to generate a series of 'jobs' which corresponds to a record in the database. Each record will be...
3
by: Grim Reaper | last post by:
I print mailing labels out of Access 2000 databases about 3 to 4 times a week. I have been having problems with one thing since I have been printing mailing labels. I print mailing labels by...
7
by: Corepaul | last post by:
Missing Help Files When I enter "recordset" as the keyword and search the Visual Basic Help index, I get many topics of interest in the resulting list. But there isn't any information available...
3
by: Mike Gramelspacher | last post by:
Hello, I have an Access 2000 database that I copied to a new computer with Access 2003. Access 2003 says the file is in Access 2000 file format. I made some changes to the Access 2000 file...
16
by: cyranoVR | last post by:
This is the approach I used to automate printing of Microsoft Access reports to PDF format i.e. unattended and without annoying "Save As..." dialogs, and - more importantly - without having to use...
4
by: Arif | last post by:
I C# code prints very slow as compared to a third party barcode printing software. That software prints approximately 10 labels in 2 seconds while my C# code prints 10 labels in 5 to 6 seconds. And...
0
by: John | last post by:
Hi Access 2000 sp3. We print a report on OKI 3391 ML (actually using the Epson LQ-1050 driver) with a custom form size. Recently we re-did the dell pc that the printer is connected to using the...
0
by: Hank | last post by:
We have been printing pdf files through Adobe, from Access for several years. Adobe version 5.0 is currently installed. Recently we have received PDF files that were created under the Adobe 7.0...
16
by: Wayne | last post by:
I've read that one method of repairing a misbehaving database is to save all database objects as text and then rebuild them from the text files. I've used the following code posted by Lyle...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.