Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 880
Product
ImgWriter
Version
1.1.7.21
Title
Using ImgWriter with C#
Problem
This article explains how to use ImgWriter in ASP.NET with C#
Solution
  1. Install ImgWriter just as you normally would if you were using it in a classic ASP page. The documentation for installation can be found here.
  2. Create a .Net callable wrapper for the ImgWriter COM objects by either:
    • Create a reference in your Visual Studio .Net application to the ImgWriter dll's that you are using. (SAImageGen.dll and/or the SAImageCollection.dll)
    • Use the Type Library Importer tool to manually create an interop assembly.
  3. Import the namespace for the dlls that you are using into your application.

  4. using SAIMAGECOLLECTIONLib;
    using SAIMAGEGENLib;
    

  5. Instantiate the objects.

  6. SAIMAGEGENLib.ImageGenClass oImageGen = new SAIMAGEGENLib.ImageGenClass();
    SAIMAGECOLLECTIONLib.ImagesClass oImageGenCollection = new SAIMAGECOLLECTIONLib.ImagesClass();
  7. Start using ImgWriter!
    Created : 6/17/2004 6:43:59 PM (last modified : 8/11/2004 5:48:25 PM)
    Rate this article!
    Comments