OpenDesignFileForProgram seems not work for pdf printing. Can suggest how to do it if I want to export pdf without opening MicroStation UI?
Thank you for replying.
I know the print commands, do you have examples about how to use COM library for backend printing job and support attaching attachments during runtime?
I prefer to use c#.
I am using latest CE
Jeffrey Kam said: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"?
Jeffrey Kam said: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:
Jeffrey Kam said:and support attaching attachments during runtime?
Because references are supported by VBA, it's also available in Interop.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point