C#

Moderators: None (Apply to moderate this forum)
Number of threads: 2722
Number of posts: 5749

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
C# InDesign instance Posted by Shayne on 7 May 2003 at 8:28 AM
This message was edited by Shayne at 2003-5-7 8:43:32

This message was edited by Shayne at 2003-5-7 8:32:26

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







Report
Re: C# InDesign instance Posted by suriyawnm on 15 Mar 2009 at 11:08 PM
For creating an instance in C# for Indesign. Use the below coding:

Indesign.Application InDApp = (InDesign.Application)Activator.CreateInstance(Type.GetTypeFromProgID("Indesign.Application"));



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.