Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

C# InDesign instance

ShayneShayne Posts: 1Member
[b][red]This message was edited by Shayne at 2003-5-7 8:43:32[/red][/b][hr]
[b][red]This message was edited by Shayne at 2003-5-7 8:32:26[/red][/b][hr]
Does anybody know how to create an instance for an InDesign Application?
The following VB Code works:

Private myInDesign As InDesign.Application
Set myInDesign = CreateObject("InDesign.Application")

I'm trying convert a VB program the automates Adobe InDesign into C# syntax. I tried the following code:

InDesign.Application indApp;
indApp = new InDesign.Application();

Which generates an error - "Cannot create an instance of the abstract class interface or 'InDesign.Application'".

If anybody out there knows how to connect C# to InDesign, I would appreciate if you could let me know how? Thank you







Comments

  • suriyawnmsuriyawnm Posts: 1Member
    For creating an instance in C# for Indesign. Use the below coding:

    Indesign.Application InDApp = (InDesign.Application)Activator.CreateInstance(Type.GetTypeFromProgID("Indesign.Application"));
Sign In or Register to comment.