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!