converting providex to pxplus - *viewer*

Started by crcanassr, April 03, 2021, 05:25:43 PM

Previous topic - Next topic

crcanassr

Does pxplus has access to a *viewer* printer to display reports to screen instead of sending them to a printer?

Mike Hatfield

*viewer is included in PxPlus
You can also define a generic text Local printer - yourname VIEWER - on port NUL. eg name the printer - MyApp Viewer
This is also available for PDF. EG Myapp PDF
Mike H

crcanassr

I tried using viewer but it does not work.  I an using:

CHN=HFN; OPEN (CHN)"*VIEWER*"
PRINT (CHN)"TEST VIEWER"
CLOSE (CHN)

It does not do anything.  It works fine on PovideX.

If I try *PDF* instead of *VIEWER* it does produces a PDF file. 

Now I am using the demo version of PxPlus to convert the application (point of sale) before we go on production with a full version.

We are running windows 10/64.

I'd try using a viewer printer as you suggest.

Thank you.


crcanassr

I tried creating a printer to print to the nul port and it just does not work. 

Am I missing somethig?

RobL

Hi,

There is an issue with your test program. You should be seeing an Error 20 Syntax error on the first line (CHN=HFN...). CHN is a System Variable and can't be used in this manner (Here's a link to the documentation https://manual.pvxplus.com/PXPLUS/variables/chn.htm)

Try changing your test program to:

CHAN=HFN; OPEN (CHAN)"*VIEWER*"
PRINT (CHAN)"TEST VIEWER"
CLOSE (CHAN)

I tried the above on a Win10/64 machine with a Demo version of PxPlus 17.10 (latest release) and the viewer opened as expected.

Regards,

Rob Leighton
Riverwood Enterprises Inc.