跳到主内容

搜索

搜索

Select Printer From A List

评论

3 条评论

  • Avatar
    Michael Toupin (mtoupin
    BarTender doesn't have functionality to enumerate the printers from Windows, what you'll do is use the PrinterSettings.InstalledPrinters property from Windows to be able to get the printers list.
    0
  • Avatar
    Legacy Poster

    Thank you Mike!

     

    I have another question but it's not related to the topic.

    Is there a way to generate the image file (.jpg) of a format print preview?

    I am able to show the preview dialog but i need to show the preview into a picture box.

     

    Thank you again!

    0
  • Avatar
    Domingo Rodriguez
    版主

    You have several ways of doing this:

     

    • Use the Format.ExportToClipboard() method.
    • Use the Format.ExportToFile() method.
    • Use the Format.ExportPrintPreviewToImage(method) --> only available in Enterprise Automation Edition of BarTender.

     

    For further reference, please take a look BarTender's Help (press F1 key within BT), and now at the "Automating BarTender > Automation with ActiveX" topic.

    0

请先登录再写评论。