PxPlus User Forum

Twitter Twitter Twitter

Author Topic: blank pdf [ignore please]  (Read 1177 times)

Jeffrey Ferreira

  • Diamond Member
  • *****
  • Posts: 175
  • I must have taken a wrong turn at Albuquerque.
    • View Profile
blank pdf [ignore please]
« on: July 28, 2020, 09:21:43 AM »
Hi List,
i am really scratching my head on this...

i have a program that is printing to pdf and the client says the pdf is blank...
so i decided to use that awesome feature "repeat data"

Repeat data did not disappoint...i created another pdf and repeat data  as follows
REPEAT DATA TO REAL_CHAN ON BACKUP_CHAN

the pdf that i created on Backup Chan looks perfect
the pdf that i created on the Real_Chan is blank.

i dont even know what question to ask besides How?

jeff
« Last Edit: July 28, 2020, 10:17:34 AM by Jeffrey Ferreira »

Jeffrey Ferreira

  • Diamond Member
  • *****
  • Posts: 175
  • I must have taken a wrong turn at Albuquerque.
    • View Profile
Re: blank pdf
« Reply #1 on: July 28, 2020, 09:44:46 AM »
in hindsight i think i should have classified this under Programming because i think i'm doing something wrong.... but that is why i put the Repeat data to determine, "Jeff are you really printing anything?" and i also check that the Real Print chan is pointing to *pdf* (to make sure i'm not going to some other printer)

Mike King

  • Diamond Member
  • *****
  • Posts: 3810
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: blank pdf [ignore please]
« Reply #2 on: July 28, 2020, 11:17:29 AM »
I tried the following and both output files had the expected data...

->open (1) "*pdf*;file=file1.pdf"
->open (2) "*pdf*;file=file2.pdf"
->repeat data to 1 on 2
->print (1) "hello world"
->print (1) "This is a test"
->print (1) 'rectangle'(100,100,300,300),
->close (1)
->close (2)


You might try this to confirm the replication is okay.
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

Jeffrey Ferreira

  • Diamond Member
  • *****
  • Posts: 175
  • I must have taken a wrong turn at Albuquerque.
    • View Profile
Re: blank pdf [ignore please]
« Reply #3 on: July 28, 2020, 11:25:52 AM »
Hi Mike that worked perfect...
i think replication is fine...
the only thing i can conclude is that i dont really have the pdf open anymore on the original print channel ...
perhaps it is zero and is printing on screen....
i have added a catch in place to hopefully figure out...

i guess when i emailed the list i was wondering if there was any command that would clear the pdf kind of like the 'AB' mnemonic...

but i honestly think it is just a bug in my code...
sorry about that.