Is it poissible to read andwrite data from a document without opening Indeisgn in .net framework(c#)
Hi Expert
I want to create a document and want to write on it.
I want to read data from an existing document.
I want to do all of these stuffs in .NET framework using C# without opeing the InDeisgn.
Everytime, I am reading data from an InDeisgn document it is opening the instance of the InDeisgn.
I do not want that.
Here is my little code :
Type oType = Type.GetTypeFromProgID(sProgID);
if (oType != null)
{
InDesign.Application app = Activator.CreateInstance(oType);
}
InDesign.Document doc = app.ActiveDocument;
InDesign.Page page = (InDesign.Page)doc.Pages[1];
InDesign.TextFrame frame = (InDesign.TextFrame)page.TextFrames[1];
Console.WriteLine(frame.Contents.ToString());
How can I manage this "Activator.CreateInstance(oType)"?
Thanks
Avijit
