Message 1 of 2
Cannot access the paper size and paper source of current printer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I called External Event from Async Method with event.Rise() so now no exception related to Transaction. An exception raised which is related to PrintManager Access.
Below is the line of code on which i am getting exception. This code is inside Transaction
PrintManager pMgr = doc.PrintManager;
Exception on this line is
Exception thrown: 'Autodesk.Revit.Proxy.Exceptions.InvalidOperationExceptionProxy' in RevitDBAPI.dll
Additional information: Cannot access the paper size and paper source of current printer
This code line is inside External Event, I tried to put that code line outside the external Event and inside Async method but same exception
I am pretty sure that this exception due to either Async or Externel Event but don't know how to come out of it.
Any ideas?