monica1
15th December 2004, 18:48
I create a script to print PDF (basing in the code of ~Vamsi) but the landscape doesn't work.
I write this in my code.

if spool.pg.width > 132 then
wait.and.activate("ttstpconv", argv$(1), tmp.file, "POSTSCRIPTa4l", argv$(4))
else
wait.and.activate("ttstpconv", argv$(1), tmp.file, "POSTSCRIPT", argv$(4))
endif


I lost the header of each page.
How can I solution my problem?

Francesco
15th December 2004, 18:57
I believe I tackled that problem succesfully in my variant

monica1
15th December 2004, 19:43
It doesn`t work for me. Any other idea?
thanks in any case.

Francesco
15th December 2004, 19:55
if spool.pg.width < 133 then
page.width = 612
else
page.width = 792
endif
page.height = 12 * spool.pg.length

monica1
15th December 2004, 20:11
I think I haven`t find your variant because this lines don“t appear. Can you post your solution again or the localitation?

I don't know what must I do with the new two variables.

Thank you,

mark_h
16th December 2004, 05:29
I think Franseco was refering to this post (http://www.baanboard.com/baanboard/showthread.php?t=590&page=3&pp=15) in the code and utilities forum. I did not review the code he posted, but it was on December 9th.

Mark

monica1
16th December 2004, 09:52
Thank you very much it works fine now.