Information générale
Catégorie:
Gestionnaire de rapports & Rapports
Kam,
> SET SAFETY command controls whether the VFP will ask you if you want to overwrite it.
SAFETY was already set in the parent form, but didn;t work. I finally got it to work
(eliminated the confirm message) by setting safety off again at init of the form that calls
the report. But why it didn't work when I already set it in the parent form still bothers me.
>But if you want to just run
>it to obtain the last page.
>You can just do: REPORT FORM myreport NOCONSOLE.
I changed it to exactly you suggested, thank you.
>In the dynamic data environment, you may want to get the last page dynamically.
>as indicated below.....
> I usually do it in 2 report form statements:
> report form myreport NOCONSOLE
>M.nLastPage=_pageno
> report form myreport TO PRINT NOEJECT NOCONSOLE NOWAIT
> But there could be a better way, you can look around in the past posts.
> Kam.
Wouldn't this lose the purpose of getting the last page number ? My intention was
to get the last page number and stuff it in a spinner for user to select whether to
print the whole or certain pages of the doc. Regarding dynamic change in info during
time lag from generating last page to user confirm input, I'd suppose there still isn't
a perfect way to handle this in the multiuser environment, though I think most of the
methods used today are sufficient to server the purpose.
Jang, Wei
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement