OpenDesignFileForProgram seems not work for pdf printing. Can suggest how to do it if I want to export pdf without opening MicroStation UI?
Hi Jefrfre,
please follow this forum best practices! How can your question can be discussed efficiently when it's not clear what product, what version of the product and what API / language do you use?
Jeffrey Kam said:OpenDesignFileForProgram seems not work for pdf printing.
Of course it does not work, it's expected behaviour. Work file is designed to be used by code, not by MicroStation modules (e.g. printing).
Jeffrey Kam said:Can suggest how to do it if I want to export pdf without opening MicroStation UI?
There are more ways how to do it, what is the best one depends on used langauge / API and existing requirements.
The most simple is to use COM API and Automation object, access MicroStation from external process, open file and print it. I did not try ot, but I guess it should work.
More complex methods can be to implement DGN_INITAPPs applicaiton, use IPC communication etc.
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point