473,785 Members | 2,283 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.OpenRepor t 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 3014
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.OpenRepor t 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
7775
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 printed on its own page which I've set up as a report and that's working fine. Accompanying each job is a Word (or Excel) document. Most jobs will have Word (or Excel) documents unique to the record. I know how to establish a hyperlink field...
3
4328
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 using a report I created and then printing them on a continuous-feed dot matrix printer. I used the Label Wizard, chose the query I created, picked the 'Avery USA 4146' (1 7/16" x 4") - 3 across, paper size: 'Fanfold 358mm x 12 in', and Printer:...
7
5387
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 from clicking on many of the available topics (mostly methods but some properties are also unavailable). This same problem occurs with many, if not most, keywords. Is there any way I can activate these "missing" help topics? HELP!
3
2413
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 code on the computer with Access 2003, and compiled. I copied the file back to the Access 2000 machine and the file runs, but the code is unviewable. Any ideas on why this happens? Mike G.
16
48887
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 a commercial program such as Adobe Acrobat and its associated API. The technique uses Ghostscript and Redirection Port Monitor - two free programs for creating PDF documents provided free by Russell Lang. The actual automation requires VBA...
4
9353
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 this differences increases with the increase number of labels. The code is as follwods: Here rdr = OleDbDataReader Font is Times New Roman, 12pt
0
334
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 original win xp disk that came with the pc. Since then the report printing has developed the following problem; The report prints parts of report text double i.e. it prints over twice some portions of the text but not all text. The portions of...
0
1694
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 version. When trying to view a file manually Adobe 5.0 displays a pop up message: "This file may contain newer information than this viewer can support. It may not open or display correctly". There is a check box with the pop-up that says,...
16
7249
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 Fairfield to accomplish the first step: Private Sub SaveObjectsAsText() path = CurrentProject.path & "\ObjectsAsText\" SaveDataAccessPagesAsText SaveFormsAsText SaveReportsAsText
0
9643
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10315
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9946
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.