Lasindu Weerasinghe said:It's my first time posting here. Sorry if this is informa
It's fine, but I recommend to move your post to MicroStation Programming forum, because it's about VB.NET (it's true it's somewhere between MicroStation and general programming, but it's still about programming ;-). To move existing post, use More > Move tool under your original post.
Also, read best practices that defines what information should be shared plus other recommendations that helps to streamline communication and make the discussion more efficient. At least to specify MicroStation version exactly (e.g. CONNECT Edition Update 13) is necessary, and because it's about Windows printing, to know Windows version can also help.
Lasindu Weerasinghe said:It looks like Microstation is not using a print driver installed on Windows
It depends how MicroStation is configured:
Lasindu Weerasinghe said:All I want to know is if someone is using Microstation to print a PDF document.
What driver do you use to produce PDF file. For long time Windows did not provide any PDF printer. Now it's possible to use very basic Microsoft Print to PDF driver or alternatives like Bullzip PDF printer and others.
But MicroStation itself contains better (because optimized for MicroStation) PDF printer (pdf.pltcfg), based on Adobe libraries and independent from Windows.
Lasindu Weerasinghe said:To make it clear, I want to know when Microstation is printing a file.
When Windows driver will be used (printer.pltcfg), you monitoring application should be able to handle such event.
When other pltcfg file (HPGL, HPRT, SVG, PDF...) is used, Windows (and you software as well) do not know about the printing process. For this scenario, you have to develop monitoring application directly for MicroStation and to ensure MicroStation will load this application automatically when it starts.
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Answer Verified By: Lasindu Weerasinghe
Thank you so much for the support.
Print To PDF can be used, but the user doesn't know how to change the printer driver to an installed printer driver. I Googled it, but still I can't see how. I will move the question but if you can answer that problem, everything will be solved
I don't know the Microstation version name, he is said it's the latest version. All I have is MicrostationGDN COM object.
Thank you again.
Lasindu Weerasinghe said:Print To PDF can be used, but the user doesn't know how to change the printer driver to an installed printer driver
It's not quite clear what the situation is and what should be changed to what.
To use Windows driver, printer.pltcfg driver should be selected. In current MicroStation CONNECT Edition, it's even not required to remember it's printer.pltcfg, because in the list, it's just called Windows printer. Also, all Windows printers should be available in the same list also.
To use MicroStation PDF printer driver (which allows e.g. to maintain level structure or to print to 3D PDF), pdf.pltcfg driver should be used.
Lasindu Weerasinghe said:I don't know the Microstation version name, he is said it's the latest version.
The version is crucial, because V8i was 32bit, whereas CE is 64bit, so when it's access from external process (e.g. using COM/Interop), the application has to follow bits and to use proper Interop assembly.
Lasindu Weerasinghe said:All I have is MicrostationGDN COM object.
I am not quite sure, because I do not use MicroStation Interop API too often, but in latest versions, IPrintEvents object should be available to monitor printing events. See MicroStation VBA help for further details.
Thanks again. I will check that IPrintEvents.