supgis

Printing map using PrintAndExport not working in SOE

Discussion created by supgis on Aug 31, 2012
Latest reply on Sep 13, 2012 by supgis
Hi,

It works fine when I use it in ArcEngine standalone application. But it didn't work in SOE using the same code.

1. Creating a IPaper (PaperClass()) takes more than 2 minutes!
2. Enumerating IPaper.Forms takes minutes!
3. IPrintAndExport.Print() throws an exception:
System.Runtime.InteropServices.COMException (0x8004030E): Exception from HRESULT: 0x8004030E
   at ESRI.ArcGIS.Carto.PrintAndExportClass.Print(IActiveView pActiveView, IPrinter pPrinter, IPage pPage, Int32 PageID, Int32 resRatio, ITrackCancel pTrackCancel)

I using IPrintAndExport for exporting PDF file in SOE works great.

Any suggestions or comments are welcome and greatly appreciated.

Thanks!

Outcomes