Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report form change dimensions at client site - help
Message
From
30/01/2004 00:18:41
 
 
To
29/01/2004 23:16:00
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00872129
Message ID:
00872184
Views:
14
>Thanks.
>Cool.
>
>One last thing. Does the File manu pop up once the MODI REPORT statment is issued, or do I have to create the File menu?
>
>thanks again.
>
Hi Dean,
I don't think that the menu is automatically there unless you already have a menu with the default file, edit, window... menu pads and it is set to automatic. In my applications, I use a custom menu that doesn't automatically add the required menu pads but when I issue modify report. I set up the default menu and set it to automatic before calling modify report as shown below. I also have a resource file (foxuser) that I have named RPTTOOLS.DBF that I use that has the report toolbar docked and visible with the record for it set to readonly so that if the user moves or closes the tool bar, it will still be there every time that a report modified or created.
*!* name of the report to create or modify
m.lcCrCustomForm = "myreport.frx"

*!* save current state of set resource to return after modify report command
m.lcCRSetResource = SET("resource") && "ON" or "OFF"
m.lcCRSetResource1 = SET("resource",1) && Resource file name

IF FILE("RPTTOOLS.DBF")
	*!* set resource to enable report tool bars
	SET RESOURCE TO ("RPTTOOLS.DBF")
	SET RESOURCE ON
ENDIF

PUSH MENU _MSYSMENU
SET SYSMENU TO DEFAULT
SET SYSMENU AUTOMATIC

MODIFY REPORT (m.lcCrCustomForm)

POP MENU _MSYSMENU

SET RESOURCE TO (lcCRSetResource1)
SET RESOURCE &lcCRSetResource
HTH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform