Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maximize reports every time
Message
 
À
04/04/2001 12:39:33
Deepak Chopra
IBM Global Services India Pvt. Ltd.
Pune, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00491964
Message ID:
00491972
Vues:
8
>I want to preview a report every time in maximize form in my application. How can i do that. Thanks in advance.
>
>Deepak

I have a method on my form that is called SendReportToPreview and the code looks like:
LPARAMETERS tcReportName, tcReportTitle

LOCAL loForm
_SCREEN.CONTROLBOX = .F.
loForm = CREATEOBJECT("Form")
WITH loForm
  .WINDOWSTATE = 1
  .CAPTION = tcReportTitle
  .MINBUTTON = .F.
  .MAXBUTTON = .T.
  .CLOSABLE = .T.
  .MOVABLE = .T.
  .HALFHEIGHTCAPTION = .T.
  .BORDERSTYLE = 3
  .SCROLLBARS = 3
  .BACKCOLOR = RGB(255,255,255)
ENDWITH
lcFormName = loForm.Name
KEYBOARD '{CTRL+F10}'
REPORT FORM &tcReportName PREV WINDOW &lcFormName
_SCREEN.CONTROLBOX = .T.

RELEASE loForm
As you can see from above I also turn off the _screen control box as my users (bless their hearts) were closing the VFP App accidentally when they tried to close the Maximized preview window. So my solution was that while the report is being viewed their is no _screen control box, but when the close the preview then it is restored.
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform