473,811 Members | 3,479 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cannot create "AcroExch.A pp"

I am having a problem creating an instance of the Acrobat
application COM component ("AcroExch.App" ) with C#.

The component "AcroExch.A pp" lives in the Acrobat
executable, and you can't add "Acrobat.ex e" directly as a
reference.

In VB 6.0, you use the CreateObject function with
the "AcroExch.A pp" ProgID to instance the COM object.

Adobe gives you a type libary called "acrobat.tl b" which
contains an interface called "Acrobat.CAcroA pp" ( so,
really, it should be named "IAcroApp" :-P ) that you bind
the object to.

For example, in VB (after adding the reference
to "acrobat.tl b"):

Dim AcroApp As Acrobat.CAcroAp p
Set AcroApp = CreateObject("A croExch.App")

Is there anything like this in C#? Can I not use ProgIDs
to create components anymore?

"CAcroApp" is just an interface and not creatable, and I
cannot reference the "Acrobat.ex e" to get at
the "AcroExch.A pp" object.
Nov 15 '05 #1
1 13285
PISINC <an*******@disc ussions.microso ft.com> wrote:
I am having a problem creating an instance of the Acrobat
application COM component ("AcroExch.App" ) with C#.

The component "AcroExch.A pp" lives in the Acrobat
executable, and you can't add "Acrobat.ex e" directly as a
reference.

In VB 6.0, you use the CreateObject function with
the "AcroExch.A pp" ProgID to instance the COM object.

Adobe gives you a type libary called "acrobat.tl b" which
contains an interface called "Acrobat.CAcroA pp" ( so,
really, it should be named "IAcroApp" :-P ) that you bind
the object to.


Have you tried using tlbimp to generate a .NET assembly from the tlb?

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #2

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

Similar topics

0
3127
by: gao ming via DotNetMonster.com | last post by:
Now ,I want to add form field to existing pdf file . below is vb code : Set AcroExchAVDoc = CreateObject("AcroExch.AVDoc") bOK = AcroExchAVDoc.Open("C:\mydoc.pdf", "") If (bOK) Then Set AFormAut = CreateObject("AFormAut.App") Set Fields = AFormAut.Fields End If Set Field = Fields.Add("Name", "text", 0, 100, 650, 450, 675) Field.SetBorderColor "RGB", 0.7, 0.5, 0.3, 0
15
2346
by: Brady Love | last post by:
I am currently working an an app that will post and edit blogs on blogger. Right now I have it so I can recive a list of the blogs and the content of those blogs using Atomizer. This is my first program where I am accessing data over the net.When I go to retrieve the list of blogs my program acts like it is locked up/frozen for a few seconds and then when it is done it goes back to normal. Does anyone know how I would get rid of the...
2
1337
by: Rocky Clark | last post by:
Now please be gentle. I have been a Microsoft developer for many years and used everything from VB 3.0 to Visual Studio 6.0 from their inception. I am now attempting to switch to .net. I had no idea how high the learning curve would be, but I continue to push on. I've downloaded this exe (self-extracting zip file) from microsoft (DotNET Color Quantization Code.exe). The instructions say to simply extract the files from the zip (no...
0
1065
by: Grumpy Aero Guy | last post by:
I have created a (Click-Once) deployed app that gets updates from my computer via a LAN. Works great ! The deployment creates a Start Menu Folder with one item, the app itself. The app gets deployed onto XP Pro OS Machines. When I right-click on the icon representing the app, the "Pin to start menu"
4
1608
by: Burt | last post by:
I'm working on a Windows app that pulls data from SQL Server, displays it on various forms and grids, and allows the user to update, insert, delete data. Some but not much business logic, just validation and and some processing, like allowing the user to import data into the db from upstream. Trying to decide between datasets, and creating an object model layer. Articles like...
5
1243
by: =?Utf-8?B?RGF2ZSBCdXJkb24=?= | last post by:
I have an unmanged C++ app (App A) which launches my VB app (App B). I need the form in AppB to be invisible until App A post a windows message that App B recognises and shows its form and controls. I can handle the messaging by overriding WndProc, but I can't get App B started without showing itself. Any suggestions on how to do this?
3
11390
AHayes
by: AHayes | last post by:
_Background I'm attempting to build a C# Windows application for work where I need to dynamically create and remove menu items (buttons). I've figured out how to dynamically create and (I think) remove these items, but I noticed that not all of my buttons are getting removed from the screen. _The Code This is a sample of how I'm CREATING the buttons: for (int i = 0; i < arrButtonData.GetLength(0); i++) { //Make new button
1
3693
by: sap0321 | last post by:
This should be kindergarten stuff but for some reason I am having trouble with it. I do 99.9% web programming and this is the first windows app i've done in years - probably the first ever in C# ... anyway ... Here is what I am trying to do .... Windows app - with a main "navigation" form with 4 linkbuttons on it - each of them open a child form with a task to perform ... on the main form, there is a Label control for the "Active...
7
2111
by: Ahmedhussain | last post by:
Hi, My application creates a thread for the conversion of several strings. I have an eventhandler called app.finished, but unfortunately, it is never called. Can any one tell me why? The code is given below for the classes which will used for threading purpose.. public class ThreadStarter { public static void main(string args)
0
9731
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
10651
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
10393
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9208
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7671
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
6893
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
5697
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4342
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
3
3020
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.