PxPlus User Forum
Main Board => Discussions => Language => Topic started by: Jeffrey Ferreira 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
-
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)
-
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.
-
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.