Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XFRX or PDF for creating PDF reports?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Versions des environnements
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Divers
Thread ID:
01046561
Message ID:
01046572
Vues:
28
>>
>
*loSession = XFRX("XFRX#INIT")
>* Demo can be called only this way otherwise it will crash VFP
>loSession = EVALUATE([XFRX("XFRX#INIT")])
>lcOutputFile = "Temp.pdf"
>llPreview = .T.
>lcOutputType = "PDF"
>lcReportName = "MyReport"
>lnRetVal = loSession.SetParams(lcOutputFile, ,Not llPreview, , , , lcOutputType)
>loSession.ProcessReport(lcReportName)
>loSession.Finalize()
>loSession = Null
>
Sergey,

I can't thank you enough. I have a quick quesion if I may, please.

In the FAQ of XFRX is says:
Q2.1: The paper size is wrong, landscape reports are generated as 
portrait.

A2.1: Make sure you don't delete the information in the EXPR field 
of the first record of the page. XFRX doesn't use printer settings 
stored in the FRX file and uses PAPERSIZE and ORIENTATION values 
from the EXPR field of the first record. If they are not there, the 
default value is used, which can result in wrong orientation or 
wrong paper size.
What is confusing above is that on one hand it says to NOT to delete EXPR field and then it says that XFRX DOES NOT USE printer settings stored in the FRX file.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform