Network printer does not work

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
wolf1860
Posts: 69
Joined: Sat Nov 21, 2015 2:04 am

Network printer does not work

Post by wolf1860 » Wed Nov 20, 2019 8:30 am

TSRichViewEdit,Standard printing action:SRVE FILE--TSrvActionPrint,It works fine when the printer connects to the pc directly,but it does not work when I use a network printer.
The printer dialog displays the information,but the printer does nothing.

Sergey Tkachenko
Site Admin
Posts: 14755
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Network printer does not work

Post by Sergey Tkachenko » Wed Nov 20, 2019 8:41 am

It does not even print an empty page?

wolf1860
Posts: 69
Joined: Sat Nov 21, 2015 2:04 am

Re: Network printer does not work

Post by wolf1860 » Wed Nov 20, 2019 9:07 am

No,it doesn't.By the way,my network printer is HP LaserJet P1505n. My client's network printer is EPSON33B569(L6160 Series).But another client' network printer(SHARP MX-M2658N -WSD) works fine.

Sergey Tkachenko
Site Admin
Posts: 14755
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Network printer does not work

Post by Sergey Tkachenko » Wed Nov 20, 2019 10:29 am

If nothing is happens, this means that the standard TPrinter methods (BeginDoc, EndDoc, NewPage) do not work.
This means that standard Delphi/WinAPI methods do not work with this printer.
Probably, it's just not available...

Can a print preview be displayed?

wolf1860
Posts: 69
Joined: Sat Nov 21, 2015 2:04 am

Re: Network printer does not work

Post by wolf1860 » Wed Nov 20, 2019 10:57 am

Sorry,I don't provide a preview function.How should I do to test this?

Sergey Tkachenko
Site Admin
Posts: 14755
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Network printer does not work

Post by Sergey Tkachenko » Wed Nov 20, 2019 7:45 pm

Sorry, I overlooked that the question was about ScaleRichView.

But testing with TRichView may be useful. Please test with RichViewActions\Demos\DelphiUnicode\ActionTest\ demo.

First, run File | Print by choosing the printer. Does it print?
Next, check File | Print Preview. Does it display a preview?
(I suggest "Print" first because its dialog allows to choose a printer; "Print Preview" uses the current printer).

For any case, try a document that contains not only text but some drawing (for example, a table with borders)

wolf1860
Posts: 69
Joined: Sat Nov 21, 2015 2:04 am

Re: Network printer does not work

Post by wolf1860 » Thu Nov 21, 2019 1:19 am

In office word the printer works fine,that means the network printer is ready.
I did further test and found some strange situations(The demo application).
1.I created an empty file,typed some english charaters ,It worked after a long time .So I tried to print the readme.rvf first page(demo default file),it worked after a long time.
2.I created an empty file,input some chinese characters,it did nothing.
3.I created an empty file,input some englist characters and a table with some english characters,it worked after a long time. Then I typed some chinese charaters,it did not work any more.
Maybe,It has something to do with the character.

Sergey Tkachenko
Site Admin
Posts: 14755
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Network printer does not work

Post by Sergey Tkachenko » Thu Nov 21, 2019 4:17 pm

Try assigning MetafileCompatibility = True.

For TRichView, it is TRVPrint.MetafileCompatibility.
For ScaleRichView, if you use RichViewAction, it is TRVAControlPanel.MetafileCompatibility.
In ActionTest demos, it can se set in Tools | Options dialog.

For ScaleRichView without RichViewActions, it is parameter of printing methods, or TSRVPrint.MetafileCompatibility.

wolf1860
Posts: 69
Joined: Sat Nov 21, 2015 2:04 am

Re: Network printer does not work

Post by wolf1860 » Thu Nov 21, 2019 5:33 pm

In my application,I set the TRVAControlPanel.Compatibility:=True,It did not work.
In the Demo,I set the tool-options-metacompatiblity:=true it did not work either.

Sergey Tkachenko
Site Admin
Posts: 14755
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Network printer does not work

Post by Sergey Tkachenko » Fri Nov 22, 2019 11:48 am

In the demo, also try to change text engine from Uniscribe to Windows (in the same dialog)

wolf1860
Posts: 69
Joined: Sat Nov 21, 2015 2:04 am

Re: Network printer does not work

Post by wolf1860 » Fri Nov 22, 2019 1:46 pm

I changed it to windows,the printer did not work either.
So I tried again.When I create a new document and typed some english characters,the printer worked after a long time ,I mean that is unnormal but it worked.
I cleared the english charaters and typed some chinese characters,it didn't work.
There are some differences between the two steps: there are 2 items in the printer dialog when english charaters and there is only one item in the printer dialog when chinese characters,the item disappeared after a long time and the printer did nothing.

Sergey Tkachenko
Site Admin
Posts: 14755
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Network printer does not work

Post by Sergey Tkachenko » Sun Nov 24, 2019 10:24 am

Unfortunately, I do not know how to fix it. ScaleRichView simply calls TPrinter methods (like BeginDoc, NewPage, etc.) and then draws on the printer canvas.
Probably, the problem is in the printer driver. Can it be updated?

Post Reply