Monitoring the print queue using VB.NET

  1. I am tryitrying to monitor the print queue in VB.NET. All I want to know is if someone is using Microstation to print a PDF document. I want the file name.
  2. I have already created a software to monitor the activity of all the print drivers in Windows. It looks like Microstation is not using a print driver installed on Windows, because my software doesn't provide an output when Microstation is printing a file. My software gives an output when MS Word is printing file.
  3. To make it clear, I want to know when Microstation is printing a file. And I want the full file name too. My current software works for other software like MS Word except for Microstation.
  4. Please help me. It's my first time posting here. Sorry if this is informal.
Parents
  • Hi Lasindu,

    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.

    It looks like Microstation is not using a print driver installed on Windows

    It depends how MicroStation is configured:

    • MicroStation uses Windows printers when printer.pltcfg is used. In such case, MicroStation behaves as normal Windows application.
    • Historically MicroStation allows to use also own printer drivers (concept coming from times where Windows were not able to print any engineering drawing correctly, because there was no API and support). In this case, MicroStation uses own engine to create and provide desired format.
    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.

    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.

    With regards,

      Jan

    Answer Verified By: Lasindu Weerasinghe 

Reply
  • Hi Lasindu,

    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.

    It looks like Microstation is not using a print driver installed on Windows

    It depends how MicroStation is configured:

    • MicroStation uses Windows printers when printer.pltcfg is used. In such case, MicroStation behaves as normal Windows application.
    • Historically MicroStation allows to use also own printer drivers (concept coming from times where Windows were not able to print any engineering drawing correctly, because there was no API and support). In this case, MicroStation uses own engine to create and provide desired format.
    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.

    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.

    With regards,

      Jan

    Answer Verified By: Lasindu Weerasinghe 

Children