Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: How to skip print dialog and print to default printer  (Read 1659 times)

davidovv

  • Newbie
  • *
  • Posts: 10
    • View Profile
How to skip print dialog and print to default printer
« on: March 07, 2017, 03:43:37 PM »
When executing ReportEngine::printReport() the dialog shows for selection of the printer and additional print button click
How can I skip his dialog and print directly to default printer?

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 951
    • View Profile
Re: How to skip print dialog and print to default printer
« Reply #1 on: March 08, 2017, 03:44:05 AM »
You can pass the printer as an argument to the function ReportEngine::printReport(QPrinter * printer = 0)

andretisch

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: How to skip print dialog and print to default printer
« Reply #2 on: June 23, 2022, 10:37:00 AM »
Не бейте ногами, но я больше на питоне пишу. Как послать аргумент в эту функцию?