CSharp and Indesign CS5

Hello


I use visual studio 2008 (c sharp) on windows 7 for createe an indesign document (CS5).

Basically, I created an Interop.Indesign.dll through the prompt by using resources of Visual Basic.tlb IE


TlbImp.exe "C:\ProgramData\Adobe\InDesign\Version 7.0\en_GB\Scripting Support.

\7.0\Resources for Visual Basic.tlb"/ out: Interop. InDesign.dll

I imported the dll resulting in my project csharp and tried code uee, but get an error message...

Unable to cast COM type object 'System.__ComObject' interface type

'InDesign.Application '. This operation failed because the QueryInterface on the COM call

component for the interface with IID '{ABD4CBB2-0CFE-11D1-801D-0060B03C02E4}' failed

due to the following error: no such interface supported (Exception from HRESULT:)

0 X 80004002 (E_NOINTERFACE)).

I am creafing an application in the following obj instance mann


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


I have refefrence the indesign dll in the project. Basically, I want to use csharp to create a

InDesign document with images and text,

Why is this not working any suggestions?

Thank you

Close visual studio, close indesign.

InDesign opened by a right-click and select run as administrator.  Just do it once, all subsequent charges may be under the normal permission set.  This allows InDesign create the applicable type libraries.

Now load your project, and then select Add a reference on the COM tab, it should now be a library of types of work Adobe InDesign CS5.

Then it's as simple as:

InDesign.ApplicationClass App = new InDesign.ApplicationClass ();

App.DoScript (_ScriptToProcess.ToString (), InDesign.idScriptLanguage.idJavascript, new Object() {""}); sends the script to indesign for treatment (not assyncronous)

I hope this helps.

Tags: InDesign

Similar Questions

  • Access to the download link for PhotoShop CS5 and InDesign CS5

    Can you tell me how to access the download link for PhotoShop CS5 and InDesign? My computer is dead. I bought a new laptop and I would like that my old software on my new laptop.


    Thank you.

    Hi daniell25288293,

    Here is the download link for Photoshop and Indesign CS5:

    Download the CS5 products

    Kind regards

    Claes

  • I can install Illustrator CC with Photoshop CS6 and Indesign CS5.5 or can I have some compatibility issues? I use Windows 7. Thank you...

    I can install Illustrator CC with Photoshop CS6 and Indesign CS5.5 or can I have some compatibility issues? I use Windows 7. Thank you...

    Generally, it should work, but of course there may be problems of occasional compatibility through different programs and their different versions.

    Mylenium

  • I have Creative Suite 6 Production Premium and InDesign CS5.5 for Windows, but I need these Mac versions. Is it possible to swap or exchange these products?

    Adobe allows Exchange my Windows version of Production Premium and InDesign CS5.5 CS6 for the Mac version? (The CS5.5 box is not open, and the CS6 is in perfect condition).

    You might be able to do something for the CS6 product, but regards the CS5.5 application is that it is not eligible.  See the following topics:

    Product order | Platform, language Exchange

  • Extension Builder 2.0 and InDesign CS5?

    Hello

    Recently, I tried to create an Extension from Adobe that uses adapters to host. But after the export of the extension and install it with the Adobe Extension Manager CS5, I received an error message when starting InDesign that the host adapter is not a valid plugin. Is it possible that the Extension Manager 2.0 can't InDesign CS5 with host adapters? Because the plugin without the host adapter works. Or do I have the old plugins to host adapter? If Yes, where can I download them?

    Thank you very much

    Martin

    Hi Martin,

    This archive contains the host ID for CS5 and CS5.5 adapters. This should work for your configuration.

    http://cssdk.host.Adobe.com/SDK/2.0/patch/id_host_adapter.zip

    Thank you

    Joe

  • Cannot place and Indesign CS5 created swf save into a file, Indesign CS5?

    I hope someone can help me?  I created a SWF animated in Indesign CS5 using the amination and deadlines of the panels for use in an interactive PDF.  The SWF exported correctly and plays as expected in the browser.  However, when I go to select the swf file to place it in my Indesign file its greyed out and cannot be selected.

    I tried essentially to follow Rufus Deuchler method to integrate animations in a PDF file http://tv.adobe.com/watch/csinsider-design/indesign-creating-interactive-pdfs-with-page-tu rn - and - flash animations /. In the video's swf is available for selection when you use the command import and everything I found on the talks from web on the importation of the SWF in indesign files as a standard feature in CS5 and CS5.5.

    I tried to re export the swf file under different names and in different folders. Quit Indesign and restart; try to place the swf file in a completely different indesign file. through all the Indesign preferences to see if there is an option to "activate" swf import and I have even tried doing Rufus and export options exactly when you create the swf file.  Nothing has worked.

    Any help would be greatly appreciated.  I have screenshots and the swf file, I'm trying to import that I can email if anyone would facilitate my growing frustration.

    See you soon

    Pete

    What OS?

    Other swf files work?

    You can drag-and-drop the SWF file in InDesign?

  • Need help with italics for the ePub and InDesign CS5

    Can anyone one help out me. I can't find the answer to this and I know it must be simple, I just lack.

    I create an ePub from InDesign CS5. All I want to do is have the italics that are displayed in the text box in InDesign, see the in the epub file.

    I prefer not to say what I did (I think I've tried everything, but obviously I got them all wrong, so no point listing them) and I hope that someone can make a simple guide, step by step how to make italics appear in the ePub file.

    Sorry if this question is under everyone, it's really annoying that I can't figure this on my own.

    Yes unfortunately sometimes does. ID is really a ship in order to get the content in epub format.

    You must go through your CSS for every job.

    Addition of

    serif; or without serifs; After each occorence a police.

    also, most in CS5 importanley make sure you have font name in the top of the CSS file "" round then, otherwise it appears correctly in the Adobe Digital Editions software, actually to check the rest of the code in this a well for example:

    {@font-face}
    Police-family: Minion Pro;
    make-style: normal;
    make-weight: normal;
    SRC:URL("fonts/MinionPro-regular.OTF");
    }

    I really only the minimum required in ID and do the rest in dreamweaver

  • HELP: just upgraded to Mac OS 10.7.3 and InDesign CS5.5 overwhelming guard from the opening

    HI - Indesign CS5.5 stopped working when I upgraded to mac OS 10.7.3. It was working fine before the upgrade... He maintains the crash during launch. Photoshop seems to work very well, but the same thing happens when I try to open Illustrator. I reinstalled suite CS 5.5, but to no avail.

    Here is some info from the accident report:

    Request for clarification:

    Reason for termination due to an untrapped exception "NSInvalidArgumentException" app: "launch path is not accessible.

    First throw of the call stack to the:

    I don't know what this means because I'm not that tech savvy... Any help is appreciated.

    Thank you!

    M

    Your accident was caused by the plugin Sutcase automatic activation.

  • Tablet Wacom and Indesign CS5 - massive delay by dropping objects

    The system version: Mac OS X 10.6.5 (10 H 574)

    iMac11, 1, Intel Core i7 2.8 GHz, 8 GB of memory.


    Hello. Please help.

    I'm getting so frustrated that I have CS5 updrade and since then, my workflow of indesign is hampered. It is clumsy and infuriating.


    Basically when I'm finished objects in motion, copying objects (with the option key key) resizing of objects or even resizing windows... my usual actions to be finished (lifting of pen) or let go of the pen button do not work, there is a problem of not recognizing that I'm finished.

    Something has changed. Now, I feel a terrible delay which means that I am now moving items and resizing of components AFTER THE FACT, they seem to cling to my movements, after I finished.

    So I now things constantly landing in the wrong place, or resized to the dimensions completely wrong etc.

    Can someone help me with this please?

    I work for a charity and the only mac at home. So, I'd appreciate it really any Advisor.

    I can't afford to spend time troubleshooting, but seem to spend so much time things to UNDO and redo it became untenable.

    Thanks in advance.

    RA

    My friend has had exactly the same problem. He got solved by changing preferably Live delayed Drawing screen, its new preference ID CS5... Basic find in Preferences > Interface tab...

  • InDesign and Photoshop CS5 - so long

    Hello

    I'm trying to download the trails of photosho and indesign CS5. It takes an age and said 14hrs, but has not changed in 3 hours...

    What can I do to speed things up? I use a MacBook pro 500 GB etc... There is nothing on it I bought it yesterday.

    Help.

    x

    Reduce traffic on your network and do not download large files on the network while it is downloading.  In addition, it will depend on your Internet connection and your Internet service provider.

  • Launch Indesign CS5 and pinwheel Mac appears as a bodyguard of spinning

    I read in previous posts as much as possible in the hope of finding someone with the same problem I have but not luck. Here is the problem.

    My Indesign CS5 launch, but just after I try to open a new or existing document Mac spinning wheel appears and I can't do anything in Indesign then. I have to Force quit to exit Indesign. I have a new MacBook Pro 17 "laptop with Mac OSX v.10.6.3. I ran the doctor of the police through all my fonts, and I tried to uninstall and reinstall the full CS5 suite 3 times already and also screw up my doc prefs several times. I'm not having the same problems with Illlustrator CS5 or Photoshop. Can anyone help please. If it helps I can post the crash report. Thanks Dean

    Hey people

    I think I just find a solution to this on another forum entry. The problem you describe sounds like I got exactly the same problem and it was solved by following these tips posted by "Lipstickdesign":

    Hello!

    One of my colleagues helped me with that. I tried Adobe support, but when they find out, I heard nothing more from them. At work, one of my colleagues knows this kind of computer/Mac-Fixer. His first proposal was to remove all plugins and try to install them again - one by one. I discovered that the plugin for character Chinese/Japanese/Korean called SING. InDesignPlugin caused my problem. I just removed this from my Plugins/text file and InDesign CS5 has worked well.

    I hope it will work for you too!

    This has indeed worked for me, so I hope this helps with you people too

    See you soon

  • How to set up default InDesign CS5 in the system with InDesign CS4 has the default value?

    How to set the application default .indd InDesign CS5 when you installed CS5 and InDesign CS4 and InDesign CS4 is the current default (InDesign CS4 has been installed after the installation of CS5)

    Thanks, but I already tried at first, but is not effective.

    I think that its because of this reason:
    The two - InDesign CS4 and InDesign CS5 have their application/program/exe named "indesign.exe".

    Installation of either InDesign CS4 or InDesign CS5, sets a default for the 'indesign.exe' Windows path. In this case, since InDesign CS4 was installed later (after InDesign CS5 was already installed), the "indesign.exe" which has been staged "Indesign.exe" of InDesign CS5 has been replaced by "Indesign.exe" of InDesign CS4.

    But after long google and searching through regedit, I have the solution:

    1. Search for HKEY_CLASSES_ROOT\InDesign.Document\Shell\Open\Command in regedit
    2. Change the value of the attribute (default) for "C:\Program Files (x 86) \Adobe\Adobe" '%1' / / including the quotes

    Post edited by: Vidit Kothari

  • InDesign CS5 and can not find the download of this version

    I need to re - install indesign CS5 and can not find the download of this version - I can find CS5.5 and my serial number is not valid for this version

    Available downloadable Setup files:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

  • Try to download inDesign CS5. When I click on download and serial line, I get an error message that there was an error recover the account. Tried several times, same problem.

    Try to download inDesign CS5. When I click on downloads and password I get an error message that says error during the file extraction.

    Try to download CS5 from this page instead: Download Adobe Creative Suite 5 products

  • Hello. I have a big problem. I have Photoshop, Indesign, Illustrator CS4 and Flash CS5 programs. I bought the programs a few years ago and used on my Mac with version 10.6.8. Now, I have a MacBook with the latest version 10.11. I wanted to copy the pro

    Hello. I have a big problem. I have Photoshop, Indesign, Illustrator CS4 and Flash CS5 programs. I bought the programs a few years ago and used on my Mac with version 10.6.8. Now, I have a MacBook with the latest version 10.11. I wanted to copy the programs on my MacBook to work also on this computer. I copied the folder with the programs 'Programs' and the folder of the "Library / Application Support / Adobe" on my USB key and pulled on the MacBook in the program folder and the folder of Adobe. Then I restarted the computer. When I wanted to start a program, I got with Photoshop, Illustrator, and Flash, the error 6 error message. For Indesign: "Adobe ID missing required files please reinstall missing file / Library / Application Support / Adobe / support /... / ROMAN." TXT ".» But on my old computer I could not find a record of support for the Type in the path to the Library / Application Support / Adobe. And I don't know what I have to do because of error 6. Can someone help me please? Thank you very much.

    Avoid copying files from one computer to the other. It won't work. You run out of hidden files scattered around the hard drive and interrupt the licensing mechanism.

    Uninstall, run the cleanup tool.

    Adobe - Adobe CS5 clean tool

    Reinstall from scratch and enter your serial number.

    Download download install and Installation Help | Download and Installation Help

    They will install under 30 days of testing. Enter your valid serial number to unlock the tests.

Maybe you are looking for

  • Cannot access shares I have permissions for

    Hello I set a password for the admin account, and I know that I got it right, cause, I can open the files from http and I can manage the NAS web admin system. But I'm unable to access all these actions that have permissions set, including on the part

  • replacement of the processor

    HelloW Please help any body... I bought a laptop hp 110-4100 havig N2700 atom processor, it's the base unique two threds processor. but I want to improve it with dual core processor... is it possible... Please kindly tell me the procedure... Sorry fo

  • 2D Array output confusion - arrays and loops

    Hello I am writing a program for a measure 3-terminal of a FET. I use 2 power supplies: for every increase of grid voltage Vg, I'm doing a drain voltage Vd Sweep and save the Id and Vd. The attached code, you'll see a Subvi, called "I.V. 2 terminals"

  • Questions about the upgrade to Service Pack 3.

    I want to install visual studio 2010 on my windows xp sp2 computer. But during the installation, we recommend that I needed sp3 to move forward. Is it possible if I get the windows xp disk that contains windows xp sp3 and upgrade my computer to sp3.

  • File \i38\system32\ntkrnlmp.exe could not be loaded. The error code is 32 768. Implementation cannot continue.

    original title: I get an error code 32768 File \i38\system32\ntkrnlmp.exe could not be loaded.  The error code is 32 768.  Implementation cannot continue.  How can I fix?