filePro pdf printing

Kenneth Brody kenbrody at spamcop.net
Mon Nov 16 07:04:50 PST 2015


On 11/13/2015 6:30 PM, Richard Kreiss wrote:
> I have been experimenting with fp's pdf output.
>
> It is quick and does open my pdf reader.
>
> Report format:
> Options = Allow embedded FPML on form = "Y"
>
> However I am trying to change the orientation to letter, landscape
>
> I placed the following code into my processing table, but it isn't working
>
> 8  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
>       ◄ If:
>       Then: or=chr("27")&"<page size='letter' orientation='landscape'>"
> 9  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
>       ◄ If:
>       Then: sz=chr("27")&"<page height='396' width='612'>"
>
> Or and sz are in the header portion of the report.
>
> I first tried this with @once processing, but that didn't work.
>
> What am I doing wrong?  Any assistance will be greatly appreciated.

The docs had a mistake, and the attribute was "orient", not "orientation". 
Newer versions of filePro will take both.  However, given that you then 
explicitly set the page height and width, that should be irrelevant here. 
(Is there a reason you are sending both?)

What, exactly, do you get for a page size on output?

Is there enough room on the form to contain both "or" and "sz"?

If you send the output to a file, without the "PDF:" prefix, filePro will 
output the raw FPML code.  Do you see the tags you placed?

Finally, note that if you are always putting these codes on the form, why 
not just put them on the form itself, rather than in fields placed on the form?

-- 
Kenneth Brody


More information about the Filepro-list mailing list