PxPlus User Forum

Twitter Twitter Twitter

Author Topic: converting providex to pxplus - *viewer*  (Read 1099 times)

crcanassr

  • Member
  • **
  • Posts: 9
    • View Profile
converting providex to pxplus - *viewer*
« on: April 03, 2021, 05:25:43 PM »
Does pxplus has access to a *viewer* printer to display reports to screen instead of sending them to a printer?

Mike Hatfield

  • Gold Member
  • ****
  • Posts: 70
    • View Profile
Re: converting providex to pxplus - *viewer*
« Reply #1 on: April 03, 2021, 08:49:44 PM »
*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

  • Member
  • **
  • Posts: 9
    • View Profile
Re: converting providex to pxplus - *viewer*
« Reply #2 on: April 05, 2021, 09:29:25 PM »
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

  • Member
  • **
  • Posts: 9
    • View Profile
Re: converting providex to pxplus - *viewer*
« Reply #3 on: April 05, 2021, 09:53:10 PM »
I tried creating a printer to print to the nul port and it just does not work. 

Am I missing somethig?

RobL

  • Silver Member
  • ***
  • Posts: 21
    • View Profile
Re: converting providex to pxplus - *viewer*
« Reply #4 on: April 06, 2021, 12:01:50 AM »
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.