Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to close Report Preview?
Message
 
 
À
07/06/2018 10:38:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
01660616
Message ID:
01660629
Vues:
50
>>>Hi,
>>>
>>>(This thread is a change to the Form Created with Define Window thread). I found that Define Window is not a problem.
>>>
>>>The problem occurs when the program shows a report in Preview Mode, I need to find it (this preview window) and close it; programatically. As if the user actually clicked on the Exit icon of the Report Preview toolbar.
>>>
>>>Is this possible? How?
>>>
>>>TIA.
>>
>>This is a simple code of previewing a report:
>>
>>
>>REPORT FORM TestReport TO PRINTER PROMPT PREVIEW NAME RepName NOWAIT 
>>
>>MESSAGEBOX("This message indicates that the report is being previewed; it is still open")
>>
>>*-- !!! Big question. How would you close the report preview here PROGRAMATICALLY?   
>>
>
>Hi, Dmitry
>
>
>RELEASE WINDOWS "Report Designer"
>
>
>will release your preview window, but it must not be in modal state. That is, the NOWAIT is required (unless you turn into the 9.0 report engine - but I assume you don't want to do that).

Hi Antonio,

Is your "Report Designer" a typo? (since I named the report preview RepName). And even if I use the code
RELEASE WINDOWS "RepName" 
or 
RELEASE WINDOWS RepName
and I used NOWAIT, as you suggested. But the report preview still stays on the screen. I would like it to close.
What am I not understanding?

Thank you.
"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