Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hide report preview titlebar

Status
Not open for further replies.

ameedoo3000

IS-IT--Management
Sep 20, 2016
233
EG
hi
how can i hide the titlebar of report preview
 
One solution that comes to mind:

Code:
loPreview = CREATEOBJECT("Form")
loPreview.TitleBar = 0
loPreview.Name = "MyPreview"
loPreview.Visible = .T.
REPORT FORM MyReport PREVIEW IN WINDOW MyPreview

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
thank you very much
the titlebar is hide but when i use foxypreviewer the titlebar is show !
i use the code :
loPreview = CREATEOBJECT("Form")
loPreview.TitleBar = 0
loPreview.Name = "MyPreview"
loPreview.Visible = .T.
do foxypreviewer.app
REPORT FORM MyReport PREVIEW

how can i hide the report titlebar with foxypreviewer ?
 
Ehm, ameedoo3000, are you following Mikes advice?

To show the report in the preview window without the titlebar, it's only half the rent to create the loPreview window. To let the report show in there the important clause is [tt]IN WINDOW MyPreview[/tt]

Let me highlight this for your impatient eyes:

Code:
loPreview = CREATEOBJECT("Form")
loPreview.TitleBar = 0
loPreview.[highlight #FCE94F]Name = "[COLOR=#CC0000]MyPreview[/color]"[/highlight]
loPreview.Visible = .T.
REPORT FORM MyReport PREVIEW [highlight #FCE94F]IN WINDOW [COLOR=#CC0000]MyPreview[/color][/highlight]

If you don't use that clause, it's like preparing an extra plate with (or without) the garnish you want, and then still using the usual standard plate (with titlebar) to serve your dish.

Bye, Olaf.
 
i am sorry
i forget this part of code
there is my simple project in the attachments
what is the worng in this code ? and why the titlebar of the report still visible ?
please tell me and modify my project to do that
thank for all

 
 http://files.engineering.com/getfile.aspx?folder=27a7247e-447d-427f-8600-8eb0c9cb8913&file=project_A.rar
thank you very much
I will follow the instructions contained in the Web page
And I'll tell you with any problems I face
 
I used these codes and is working without problems

PUBLIC cpreview,cListener
DO (_REPORTPREVIEW) WITH cpreview
cpreview.ZoomLevel = 10
cpreview.ToolbarIsVisible = .T.
cListener= CREATEOBJECT('ReportListener')
cListener.ListenerType = 1
cListener.PreviewContainer = cpreview
REPORT FORM my_report_name OBJECT cListener NOWAIT
cpreview.oForm.Toolbar.Dock(0)
cpreview.oForm.WindowState = 2
cpreview.oForm.titlebar = 0

thank for all
 
You misunderstood, but found a solution anyway, fine.

You could have
1. asked in foxite or other forums used and watched by foxypreviewer developers
2. added an issue in the issue tracker.

You now don't use foxypreviewer at all, as far as _REPORTPREVIEW is simply the normal native report output app of VFP.
In that case you could simply use Mikes code. Your code is overcomplicated now.

Also look here:section "Properties - APPLICABLE TO ALL MODES"
cTitle - character, the preview window title

So you could do
Code:
DO foxypreviewer.app
_Screen.oFoxyPreviewer.cTitle = "" && or set any alternative title you want
REPORT FORM MyReport PREVIEW

Bye, Olaf.
 
i would like to use foxypreviewer but i cannot and i try much and nothing so i used reportpreview to end Fatigue .
Mikes code is not work after and i do not now the reason and i send my simple project to see what the problem and you do not see it so i tried to find another code to do that
i will see this web page to find the solution for foxypreviewer again
thank you very much
 

Now the problem is that foxryprviewer toolbar works well in the design of the project but after build the project to exe file format becomes disable
waht the problem
 
Even without foxypreviewer reporting in the IDE and from an EXE is a difference. Foxypreviewer.app has to go where the EXE is, APPs and DLLs and some other files don't ever become part of an EXE, they remain extra files. Even in case of normal reporting, you'd need to provide the ReportOutput.App of VFP9 to have VFP9 reporting features in an EXE. FoxyPreviewer.App is an advanced form of that APP, so don't provide both, but you have to redistribute FoxyPreviewer.App with the EXE. Besides the APP, PDF reports need the LIBHPDF.DLL.

Bye, Olaf.
 
myself said:
Foxypreviewer.app has to go where the EXE is, APPs and DLLs and some other files don't ever become part of an EXE, they remain extra files

Bye, Olaf.
 
yes Foxypreviewer.app is in the same folder where exe file put in
The problem is that the report opens and the foxypreviewer toolbar is disabled, but in the right click elements to be effective, what is the cause and the solution to this ?
 

fp docs said:
The Print Preview Toolbar is visible but all buttons are disabled (not responding) in my Top-Level form report. How to fix that ?

Unfortunately, there is a known bug in VFP9 SP2, that makes all toolbars inside Top-Level forms not to respond. Fortunately, MS is distributing a hotfix for SP2, that fixes this issue. Please download the latest cumulative hotfix - KB968409 from

The VFP hotfix download also is mentioned in the FoxyPreviewer Downloads/Releases at
"OTHER AVAILABLE DOWNLOADS" - MSKB 968409 - Latest Hotfix for VFP9 SP2 - Updates VFP to v9.0.0.7423


Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top