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

Controlling Acrobat

Hi All,

What I want to do from a VB/VB.NET application (the steps are appropriate to
Acrobat 6.0):

1. Open a specified PDF file.

2. Access the Document | Pages | Crop dialog box and change the crop values
and page range to "All".

3. Access the Print Dialog and change the Page Scaling setting to "Fit to
Paper".

4. Print all Pages.

5. Close the PDF without saving changes.

Can/How do I do this?
If this is not the appropriate forum:
1. Sorry!
2. Where is one?

TIA and have a great day!

Steve
Nov 20 '05 #1
1 1105
Steve,

fairly easy: COM automation...

a) import the Adobe Acrobat Control into the Toolbox
b) place a control on your GUI
c) in the editor the code complete will show you all the methods you can call.

I've just written some sample code and it works. Haven't called pdf.print(), but I suppose it should work. For details plz e-mail
me.

-markus


"Steve Lang" <no*****@Nohow.not> wrote in message news:eA**************@TK2MSFTNGP12.phx.gbl...
Hi All,

What I want to do from a VB/VB.NET application (the steps are appropriate to
Acrobat 6.0):

1. Open a specified PDF file.

2. Access the Document | Pages | Crop dialog box and change the crop values
and page range to "All".

3. Access the Print Dialog and change the Page Scaling setting to "Fit to
Paper".

4. Print all Pages.

5. Close the PDF without saving changes.

Can/How do I do this?
If this is not the appropriate forum:
1. Sorry!
2. Where is one?

TIA and have a great day!

Steve

Nov 20 '05 #2

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

Similar topics

8
by: Chris | last post by:
Hello all, I wish to automate printing of PDF documents in a C# application. Is there an Adobe .net object? I tried to create a reference to the COM Object Adobe Type Library, but I get error...
4
by: Andrew | last post by:
My VB Application opens an Access Report and has an option to generate the report in PDF once the report is closed. This is accomplished by: - Switching over to the Acrobat Printer (i.e....
3
by: Joris De Groote | last post by:
Hi, I use Adobe Acrobat to read tekst from PDF files. After that the file has been read, I move the file in a folder (using the date I got from the text I got from Acrobat). Now here is my...
0
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi all people, everybody, We have multiple versions of Acrobat Reader from 5.x to 8.x, I want to create a method in C# or VB.NET to check to see if the registry key for the versions...
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:
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...

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.