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
 
Ameedoo3000,
You desire to hide the Preview toolbar and you would like to make use of FoxyPreviewer if I understand correctly.
Sorry, but what is the use of this?
FoxyPreviewer is an application to customize your preview inclusive the toolbar, if you hide the toolbar, there is no use of FoxyPreviewer anymore, you might as well just print the report without previewing and thus you dont need FoxyPreviewer.
Please be more specific what your goal is.
Your code:
Code:
PUBLIC cpreview,cListener
DO (_REPORTPREVIEW) WITH cpreview  && cPreview is not instantiated
cpreview.ZoomLevel = 10
cpreview.ToolbarIsVisible = .T.   &&There is no such property 'ToolbarIsVisible' and if you want to hide the Toolbar, 
it should be something like:
*!* cPreview.Toolbar.Visible = .F.
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

Regards,
Jockey(4)
 
My goal is to
1-hide the titlebar of the report
2- visible and enabled foxypreviewer toolbar in the report
3-I havea setup Hotfix and still the problem of not activating foxypreviewer toolbar tape exists
Please advise me
 
What is displayed as version after you applied the Hotfix?

? VERSION(4)

The easiest way to copy that over here: _cliptext = VERSION(4), then paste here.

Bye, Olaf.
 
excuse me
i am do not understand you
version of what ?
where can i see that ?
 
if you mean foxypreviewer version it is
FoxyPreviewer v299z35
 
The hotfix should fix this, I don't know. If you actually used the code, you would have got 09.00.0000.7423, and now don't tell me this is just a typo on your side.

Did you follow all the instructions of the Hotfix and replaced all files, including the runtime DLL? And does your EXE use the changed runtime vfp9r.DLL?
Put a MESSAGEBOX(Version(4)) in your main start prg code and see, what the EXE displays.

Bye, Olaf.
 
this message has been appear when run the application

Untitled1_n0gbm4.jpg


Untitled2_hng3io.jpg
 
You have wrong runtimes. Presumably the vfp9resn has to be updated, too, because the error explicitly talks about resources. VFP9resn.dll is a resource DLL with text and graphic resources and has to match the new main runtime vfp9r.dll.

Are you really sure, you followed all instructions of the Hotfix? You are asked to replace several files at several places. And all the copies you made of the old files, eg in your application folder, have to be updated, too. This doesn't get done automatically.

I'm pretty sure it's the vfp9resn.dll, also see
Then about msvcr70.dll, the libhpdf.dll might need it, but not VFP9, see VFP uses the msvcr71.dll

Bye, Olaf.
 
ok
is there setup to foxypreviewer or it protable file ?
 
This is about the hotfix, not about foxypreviewer.

If you "install" the hotfix, you only get a bunch of files extracted, this comes with instructions to do and you might have done them all, but you did not fix the vfp9resn.dll in your application folder. You have to replace all vfp9r*.dll files with * being esn in your locale most important.

Also: Did you apply SP2 before applying the Hotfix? This wouldn't work out as well. The Hotfix is not for VFP9 initial installations, it is for fixing the SP2, so your install history has to be VFP9, then SP2, then the Hotfix.

Bye, Olaf.
 
i am very sorry
now every thing is ok
I have not replaced the VFP9resn.dll with the new file in the folder, but after replacement everything is fine .
Very sorry, I've caused you fatigue
Thank you very much

i will now try to hide the titlebar of report . And I hope that there will be a conflict
 
Well, one of the things I showed is to rename the title, at least. But I also think now the toolbar fix is there by fixing VFP9 itself, you could go with the original idea and use the IN WINDOW clause.

Bye, Olaf.
 
I tried to use the code intended but no results !
All I want is to hide the titlebar which shown in image
1_okalqj.jpg
 
And how about what I gave you later?

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

Don't just stop at the first thing, you know you can do more...

Bye, Olaf.
 

Ameedo300,

Code:
All I want is to hide the titlebar which shown in image

In this case you will have to subclass class frxpreviewform in the frxpreview library, and set the titlebar to 0 or even better, add a new method SetTitleBar with which you may control the on/off setting.

To set the cTitle property in FoxyPreviewer to '' will not help as it controls the caption of the titlebar and not the visibility.

Regards,

Jockey4
 
What you can do with customization by configuration doesn't make such changes necessary. But sure, this could alse become another new feature committing it back to the project, if it's really not possible to get an IN WINDOW ownwindowname to run with FoxyPreviewer and it hijacks the preview to always be in its own preview window.

Bye, Olaf.

 
well.. Reasonable theory
How can disable the buttons shown in the image without hide the titlebar

222_kfrqqh.jpg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top