Page 1 of 1

trichview doesn't print

Posted: Mon Nov 09, 2020 9:20 am
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

Re: trichview doesn't print

Posted: Tue Nov 10, 2020 9:34 pm
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 ?

Re: trichview doesn't print

Posted: Wed Nov 11, 2020 10:50 am
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.

Re: trichview doesn't print

Posted: Thu Nov 26, 2020 11:07 am
by i.v.kabanof
setting title in trichview fixed the problem