Print pdf without open MicroStation UI

OpenDesignFileForProgram seems not work for pdf printing. Can suggest how to do it if I want to export pdf without opening MicroStation UI?

Parents Reply
  • I am using latest CE

    I appologize for beying ironic, but what is "latest CE" version exactly? It will only confuse future readers, because a year ago it was Update 10 (maybe), now it's Update 13.1 and next year it will be Update 14 or 15. Why to don't be specific and wrote e.g. "I am using MicroStation CE Update 13.1"?

    how to use COM library for backend printing job

    In C#, use Bentley.Interop.MicroStationDGN.dll assembly, I also recommend to check "Connecting to MicroStation from a Separate Process" examples in VBA help (because VBA API and Interop are nearly the same). How to use C# (and VB.NET) to access MicroStation from external processes have been discussed in this forum several times.

    Another good source of information are examples delivered with MicroStation SDK, even though they are not specifically about printing:

    • IPCs\IPC\managed, demonstrating how to use IPC to connect to IModel engine
    • IPCs\IPCManagedExample, showing how to communicate with MicroStation
    and support attaching attachments during runtime?

    Because references are supported by VBA, it's also available in Interop.

    With regards,

      Jan

Children
No Data