Hi Thierry,
For the preview mode, I saw that you always used a PDF
preview.
Why not export to HTML
?
It's just a question ...
Hi Vincent,
Never tried HTML… PDF preview is the closest to final output.
Yes, but not the fastest.
Please forgive me for jumping in. HTML reports can be created with plain VFP9 code, since it's already built in.
However, be aware that HTML reports will never be WYSIWYG, too many external factor will affect how the reports will look. Among these factors are different browsers, different OS, different screen resolution, different screen scaling, different built in fonts and many others.
Bonjour Vincent, Did you try, with XFRF, to generate an HTML report rather than an PDF report? (oxfrx.SetParams("my_output.html",,,,,,"HTMLPLAIN")
Cordialement
Gilles
Thanks for your intervention.
Indeed, it works well but the display is sometimes a little degraded compared to the original.
I think it is necessary to introduce a CSS
sheet.
Hello Gilles,
Thanks, I will try with XFRX (but my version is a little old).
For a slightly more modern look, I'll try to generate Markdown text with HTML conversion ...
Bien cordialement,
Vincent
Have you tried FoxyPreviewer?
Yes, for a long time, because it allows to justify text, even on several pages.
Only for a preview of my calendar, I will try a development in Markdown
Vincent, all,
After further thinking,
PDF
is fine for a VFP report (thanks to converters such as FoxyPreviewer, XFRX, etc.),HTML
is better for a documentMarkdown
is advisable if the user must be able to modify the result document, otherwise it's just another useless step- a
CSS
is definitely necessary, with@screen
,@media
and@print
directives to accommodate for a variety of media sizes.