PC Review


Reply
Thread Tools Rate Thread

Batch printing files for user out of VBA

 
 
Fly Girl
Guest
Posts: n/a
 
      26th Jan 2004
Surely there is someone else out there who has done this!

MS Access app on Server 2003 with Office 2002 to SQL Server 2000.

I have numerous files (.doc, .snp, .pdf, .xls) stored on my server
that are associated with records in my database--note that files exist
OUTSIDE of the database. Occasionally my user needs to print all files
associated with a certain record and in a standard client/server
environment I do that with code, specifically with an API call using
ShellExecute and the 'Print' verb.

However, for my users that have been moved to Terminal Server, batch
printing files from code is not working. It seems that the problem is
that TS doesn't know which printer to use when I make the API call.
Note that all files will print just fine if the user opens up one file
in the native app and asks the app to print it so this is not an issue
of printer drivers, etc. However, some apps, e.g. Acrobat Reader, will
always ask the user to specify a printer even under these conditions.

My tests with Shell and the 'PrintTo' verb as well as hacking some
command line strings together and running them from VBA have not
turned up any viable results. Command line stuff that will do the job
from my PC fail when run on TS.

So, I'm looking for a way to send files for printing and specify what
printer to use or in some way let TS know what user need the prints so
it can find the user's default printer. Additionally, I'm looking for
how to specify a user's printer to TS.

Any suggestions?

Thanks for the help!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch printing of excel files =?Utf-8?B?R3Jk?= Microsoft Excel Programming 1 20th Oct 2005 07:52 PM
batch printing pdf files David Cho Microsoft C# .NET 1 19th Mar 2005 02:01 PM
Printing HTML Files in Batch =?Utf-8?B?bmF3d3U=?= Microsoft Dot NET 0 16th Sep 2004 03:23 PM
How do I name files when batch printing to a PDF writer? M Skabialka Microsoft Access Reports 6 20th Oct 2003 11:36 PM
Printing HTML Files in Batch Mode Doctor B. Windows XP Internet Explorer 0 9th Jul 2003 07:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:22 PM.