Trying to make C# application for creating Library.
But, now get stuck with interface InDesign.Image.
System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object."
What is the right way to use this interface in C#?
static void Main(string args)
Image img = null;
object obj = img.Place("C:\\mypic.jpg", false);
Excuse me for asking, but why would you expect the img object variable to be anything useful when you set it to null? You would need a reference to an application object and an active document and so on.