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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with Report Toolbar

Status
Not open for further replies.

beedubau

Programmer
Jan 7, 2003
97
AU
I am trying to get faq1252-4982 working.

I have a number of questions.

1 I can not locate the "On entry" band of the page header of the report - how do I get there

2 My existing Report code creates a window and shows the report full screen in the app window - I want to keep this - how

3 Stepping through with the debugger as I enter the form I get the init() method and see the code above.. I can see the oTbr object in the Watch window - however when I get to run
oTbr.Visible = .T. _ I get an error. This may be caused by the lack of the code in the "On entry" band.

The Report is displayed with the Original Toolbar undocked and a windowed Report.

So, I would like..

1 A full screen report

2 A _docked_ Toolbar

3 Ideally the replacement Toolbar but this is not absolutely necessary.

My previous code was

REPORT FORM ('myreport.frx') PREVIEW WINDOW ;
(oRepForm.NAME) TO PRINTER PROMPT


Any help would be appreciated.

Regards

Bryan

 
I have progressed to the point that :

I have used my previous command and now have a full screen Report

but I have both the default toolbar and the new one.

This must be due to my inabilty to add the code the "On entry" band of the page header of the report - how do I get there?

Regards

Bryan

 
Another problem is that there is no function to Print the report.

How does the default Toolbar Print command work?

Can that be incorporated into the n toolbar?

Regards

Bryan
 
Further progress.

1 The line


# In the "On entry" band of the page header of the report,

should read


# In the "On entry" property of the page header band of the report,

2 I have been able to Remove the default Toolbar by using

RemoveWindow('Print Preview') in the above property -

3 I have a fullscreen report

4 I cannot work out code to [Print] - nay takers?

Regards

Bryan
 
Bryan,

If I might jump into this interesting conversation ....

Have you tried simply doing a REPORT FORM command (without the PREVIEW clause) from the click of the Print button? I don't know if that would work or not, but it would be worth a try.

Failing that, maybe Mike Gagnon could answer the question.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Mike,

Yes - I did try that - but no Print.

Bryan
 
At least I can always use the Default Toolbar - no user has complained yet.

Bryan
 
Bryan,

I dislike the native report toolbar so much (in fact, I dislike the whole preview window), that I created my own preview form. To do so, I used the report viewer control that comes with XFRX.

My users say they like it much better than the built-in preview.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Thanks Mike,

My software is so cheap as the 'master' software is only $US60 so it doesn't warrant another 3rd party gizmo - especially for such a limited 'upgrade'. But XFRX is interesting to know about - thanks.


Regards

Bryan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top