trichview doesn't print

General TRichView support forum. Please post your questions here
Post Reply
i.v.kabanof
Posts: 4
Joined: Wed Jan 08, 2020 3:50 pm

trichview doesn't print

Post by i.v.kabanof »

I have two components in a program, trichview and fastreport. Both print fine on most computers.
Several days ago, the program was installed on a computer with "ECOSYS M2040dn" network printer.
On that computer, trichview documents show "printing error" in print queue, and doesn't print.

Tried a very simple program with the folloing code:
Printer.BeginDoc;
Printer.Canvas.Font.Name := 'Arial';
Printer.Canvas.Font.Size := 20;
Printer.Canvas.TextOut(200, 200, 'Hello world');
Printer.EndDoc;
This test program gives the same error as trichview.

But fastreport reports print perfectly fine from within the same program on same printer.
How can I fix the problem ?

Thank you
Attachments
err-2020-11-09-pel printing 01.png
err-2020-11-09-pel printing 01.png (7.99 KiB) Viewed 15913 times
i.v.kabanof
Posts: 4
Joined: Wed Jan 08, 2020 3:50 pm

Re: trichview doesn't print

Post by i.v.kabanof »

Printer.Title := 'Hello';
Printer.BeginDoc;
Printer.Canvas.Font.Name := 'Arial';
Printer.Canvas.Font.Size := 20;
Printer.Canvas.TextOut(200, 200, 'Hello world');
Printer.EndDoc;

After some try & test, it turned out Title is a must for this printer.
The code above prints fine.
Question remains - how can I fix trichview printing ?
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: trichview doesn't print

Post by Sergey Tkachenko »

If you print using TRVPrint component, the title is specified as a parameter of printing methods: Print, PrintPages.
If you print using RichViewActions, assign Title property of printing actions.
i.v.kabanof
Posts: 4
Joined: Wed Jan 08, 2020 3:50 pm

Re: trichview doesn't print

Post by i.v.kabanof »

setting title in trichview fixed the problem
Post Reply