FoxInCloud
REPORT FORM ... PREVIEW
Gravatar is a globally recognized avatar based on your email address. REPORT FORM ... PREVIEW
  Vincent H.
  All
  Jul 31, 2020 @ 01:36am

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 ...

Gravatar is a globally recognized avatar based on your email address. re: REPORT FORM ... PREVIEW
  FoxInCloud Support - Thierry N.
  Vincent H.
  Aug 1, 2020 @ 01:47am

Hi Vincent,

Never tried HTML… PDF preview is the closest to final output.

Gravatar is a globally recognized avatar based on your email address. re: REPORT FORM ... PREVIEW
  Vincent H.
  FoxInCloud Support - Thierry N.
  Aug 1, 2020 @ 02:59am

Yes, but not the fastest.

Gravatar is a globally recognized avatar based on your email address. re: REPORT FORM ... PREVIEW
  Tore Bleken
  Vincent H.
  Aug 1, 2020 @ 08:48am

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.

Gravatar is a globally recognized avatar based on your email address. re: REPORT FORM ... PREVIEW
  Gilles Lajot-Sarthou
  Vincent H.
  Aug 2, 2020 @ 12:21am

Bonjour Vincent, Did you try, with XFRF, to generate an HTML report rather than an PDF report? (oxfrx.SetParams("my_output.html",,,,,,"HTMLPLAIN")

Link doc.. XFRX HTMLPLAIN

Cordialement

Gilles

Gravatar is a globally recognized avatar based on your email address. re: REPORT FORM ... PREVIEW
  Vincent H.
  Tore Bleken
  Aug 2, 2020 @ 01:12am

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.

Gravatar is a globally recognized avatar based on your email address. re: REPORT FORM ... PREVIEW
  Vincent H.
  Gilles Lajot-Sarthou
  Aug 2, 2020 @ 01:19am

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

Gravatar is a globally recognized avatar based on your email address. re: REPORT FORM ... PREVIEW
  Vincent H.
  Tore Bleken
  Aug 2, 2020 @ 01:37am

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

Gravatar is a globally recognized avatar based on your email address. re: REPORT FORM ... PREVIEW
  FoxInCloud Support - Thierry N.
  Vincent H.
  Aug 3, 2020 @ 12:07am

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 document
  • Markdown 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.
Gravatar is a globally recognized avatar based on your email address. re: REPORT FORM ... PREVIEW
  Vincent H.
  FoxInCloud Support - Thierry N.
  Aug 3, 2020 @ 12:36am

Excellent synthesis !

© 1996-2024