Programing Print function in an app

Hello,

Is there an example / description how to programming a print function in haiku.

I found a pagesetup and print in styleedit. But not all is clear for me.

How that work together and so on.

Regards lorglas

1 Like

I have no experience at all with printing in Haiku but I got curious and found the BPrintJob class in the Be Book at https://www.haiku-os.org/legacy-docs/bebook/BPrintJob_Overview.html
Hope it helps :slight_smile:

Thank you,

i will study it.

How can I generate the dialog by specifying the pages that I want to print?

For example Document is 10 pages long, I want to print pages 3-5.

printer

I only get the top icon for the page setting.

I found the Problem. I forgot to call job.ConfigJob(), but one last issue.

Lastpage are set to a long Number, it is possible to set it to the real lastpage.

2 Likes

printing from QT would be awesome, q d webpositive