A4 - Printer [Solved]

Post your Gambas programming questions here.
Post Reply
toto96
Posts: 8
Joined: Monday 24th April 2023 5:23pm

A4 - Printer [Solved]

Post by toto96 »

Hi,
I would like to print some richtext that spans across multiple pages (A4). Is it possible to do this with the printer component?

  Paint.DrawRichText(titre & ligne_separation & saut_ligne & contenu_note, 960, 400, Paint.Width - 2 * 960)
  


--> My text exceeds the height of one A4 page. How can I generate the additional pages?
Attachments
exemple.png
exemple.png (68.52 KiB) Viewed 723 times
Last edited by toto96 on Monday 8th May 2023 1:31pm, edited 1 time in total.
User avatar
cogier
Site Admin
Posts: 1118
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: A4 - Printer

Post by cogier »

There is Printing help available here and there is an example program available on the Farm, and here
toto96
Posts: 8
Joined: Monday 24th April 2023 5:23pm

Re: A4 - Printer

Post by toto96 »

Thank you,

I have found the solution, I am dividing my string's length relative to a page.
Post Reply