473,382 Members | 1,258 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,382 software developers and data experts.

Shelling out to Adobe

I have been using the ShellExecute command for about a year to print
out a list of PDF files. It's a great capability. Of course, the
documents are actually printed by the Adobe application. We have
recently added a new, high speed, black and white, printer which would
be perfect for the engineering documents I want to print.
Does anyone know if the destination printer can be selected when
using ShellExecute? There is a string field called parameters which
might be usable for that purpose but I have no protocol information
for it. I have looked through Adobe help and could find nothing under
the headings of "Printers", "Selecting", "Command Lines" or "DOS"
I don't want to change the windows default printer even briefly.
As a work around I can make it work by opening Adobe manually and
selecting the desired printer. All subsequent documents then go to
that printer. I would rather set it programatically.
Thanks,
Hank Reed
Nov 12 '05 #1
3 1992
Hank Reed wrote:
I have been using the ShellExecute command for about a year to print
out a list of PDF files. It's a great capability. Of course, the
documents are actually printed by the Adobe application. We have
recently added a new, high speed, black and white, printer which would
be perfect for the engineering documents I want to print.
Does anyone know if the destination printer can be selected when
using ShellExecute?
How would that help?
There is a string field called parameters which
might be usable for that purpose but I have no protocol information
for it.
How would that help.
I have looked through Adobe help and could find nothing under
the headings of "Printers", "Selecting", "Command Lines" or "DOS"
That would help.
I don't want to change the windows default printer even briefly.
As a work around I can make it work by opening Adobe manually and
selecting the desired printer.
That would work.
All subsequent documents then go to
that printer. I would rather set it programatically.
How would setting a printer destination in Access help in setting a
printer in Adobe? If you can''t set (don't know) the command line
parameters when opening Adobe I'd be at a loss how Access can do it any
better.

Thanks,
Hank Reed


Subscribe to a newsgroup for Adobe and find out what the parameters are.
If there are some parameters, try them out...make sure you change
shellexecute to pass the string instead of null.

Nov 12 '05 #2
I may not have explained my question so you could understand it. I want
to know if there is a way to embed printer information into the
parameters field that is part of the ShellExecute command I use to open
Adobe and print documents remotely form Access.
As I understand the fields of the call, there is:
An Operation field
A file name field
A Parameters field
A Directory field
A Show Command field
I know nothing of the usage of the Parameters field and was
wondering if it could be used to specify the printer that Adobe would
use.
My command string is typically:
shellexecute Me.hwnd, "print", FileName, "", 0, SW_SHOWNORMAL

Thanks,
Hank Reed

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3
I don't know about shell - but you could add a reference to Acrobat, then do
something like this...

air code here but I would think it goes something like this...

dim ar as acrobat.application
set ar = new acrobat.application
ar.show = false 'or true
ar.open "x:\somefile.pdf"
ar.print
set ar = nothing

You might also check for errors when creating the ar variable to see if
Acrobat is not installed.

Here is a link to a pdf that contains some of the props and methods - might
have to translate some of the cpp to vb though...

http://partners.adobe.com/asn/acrobat/docs/iacovr.pdf

Good luck!

--
Jerry Boone
Analytical Technologies, Inc.
http://www.antech.biz
Secure Hosting and Development Solutions for ASP, ASP.NET, SQL Server, and
Access

"Hank Reed" <ha********@aol.com> wrote in message
news:3f*********************@news.frii.net...
I may not have explained my question so you could understand it. I want
to know if there is a way to embed printer information into the
parameters field that is part of the ShellExecute command I use to open
Adobe and print documents remotely form Access.
As I understand the fields of the call, there is:
An Operation field
A file name field
A Parameters field
A Directory field
A Show Command field
I know nothing of the usage of the Parameters field and was
wondering if it could be used to specify the printer that Adobe would
use.
My command string is typically:
shellexecute Me.hwnd, "print", FileName, "", 0, SW_SHOWNORMAL

Thanks,
Hank Reed

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 12 '05 #4

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

Similar topics

1
by: JohnC | last post by:
I have this exact same scenario. It is new and seems to be related to when we installed Adobe 7.0 Standard/Professional. We have an MDB on a LAN file server. Using Access 2K and Windows 2K. ...
1
by: A | last post by:
Does anyone have any code for shelling out a command to start up an executable with command line arguments? I am simply trying to start a MSDE install by calling its Setup.exe. Thanks
1
by: Stephen Miller | last post by:
On my development machine (where the group 'Everyone' has full access to every directory), the following code successfully shells to a console application: Dim objShell As...
3
by: _IS_ - | last post by:
I have the problem that shelling in vb.net is not working for me at this point. I am trying to make a graphical application to netsend (multiple) PCs on the network(notwork) and to ping to check...
6
by: djc | last post by:
I'm wondering what options are available, if any, for being able to run 'any command line command' from a .net compiled program. I would want the output that would normally go to the command line...
0
by: MirkoGeest | last post by:
(Webmaster: sorry, I posted this first at the General Software Engineering category, but I think this goes here) I'm using Visual Basic with Web Forms on .NET 2003 and I'm experiencing a very...
0
by: s.danyal.k | last post by:
Hi All, I have made an application that loads an Adobe Acrobat file and shows it. For this I ve used Adobe ActiveX Control available in C#. Heres a sample code. I am adding the control...
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...
10
by: Jules Winfield | last post by:
Guys, I've been designing applications for the financial services industry using MSFT technologies for many years (Win32 API, MFC, and now .NET WinForms). All applications are Internet-based,...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.