I want to disable the print button in the previewer for
demo purposes. Any ideas how to accomplish this?
Would be great if it could be done globally.
Thanks for any ideas.
Mario
On Mon, 28 Apr 2003 19:06:09 +0200, "Mario Reinhöfer"
<m...@netzsystem.de> wrote:
>I want to disable the print button in the previewer for
>demo purposes. Any ideas how to accomplish this?
>
>Would be great if it could be done globally.
http://www.icetips.com/products/previewer.htm
You can do whatever you want with it:)
Best regards,
Arnór Baldvinsson
Icetips Software
San Antonio, Texas, USA
www.icetips.com
ar...@icetips.com
Subscribe to information from Icetips.com:
http://www.icetips.com/getnotificationinfo.htm
> http://www.icetips.com/products/previewer.htm
> You can do whatever you want with it:)
I believe that you made a great tool but for that application I'm
quite satisfied with the Clarion report previewer and don't wanna
spend 200$ for disabling a button.
Mario
Deriving the Clarion previewer (and many other useful topics) is covered in
Bruce Johnson's ABC Book from Capesoft. It is well worth the investment. I
think it is something like $58
There is something in there that everyone will use.
--
Regards,
Trevor Cocks
Data Design Services Ltd
Email: trevor...@ddssoftware.co.uk
Web: www.ddssoftware.co.uk
Tel: +44 (0)23 8024 0470
Fax: +44 (0)23 8025 2573
Supplier of Printers MIS software written in Clarion.
"Mario Reinhöfer" <m...@netzsystem.de> wrote in message
news:3ead...@news.softvelocity.com...
On Mon, 28 Apr 2003 20:28:44 +0200, "Mario Reinhöfer"
<m...@netzsystem.de> wrote:
>I believe that you made a great tool but for that application I'm
>quite satisfied with the Clarion report previewer and don't wanna
>spend 200$ for disabling a button.
Of course not. That's like spending $2500 on the Enterprise Edition
to compile a hello world program;) However, the ADDITIONAL benefits
would be worth something wouldn't they?<g>
There are some problems in solving this problem within the ABC class
unless you modify or override the Display method of the
previewerclass. The reason is that ALL the code is in that function
and the only embeds that are available are in the Ask method but that
is derived from the WindowManager and doesn't have access to the
private data in the Previewer class.
What you can do is open the ABREPORT.INC file and remove the PRIVATE
attribute off the following lines (92 and 95 in my file):
PrtPrev:TBarPrint USHORT!,PRIVATE
PrtPrev:MenuPrint USHORT!,PRIVATE
Then in the report embeds: "Local Objects|Abc
Objects|Previewer(PreviewerClass)|Ask|Code" before parent call put
these two lines:
If ThisIsDemo
SELF.PrtPrev:TBarPrint {Prop:Disable} = True
SELF.PrtPrev:MenuPrint {Prop:Disable} = True
End
This will disable the Print button and the File|Print menu item. Why
in the world these properties are Private I have no clue. It never
made sense to me and it still doesn't. I just reported this for C6 so
SV may get a chance to change this before it goes Gold:)
I just saved you $199 but where do I send the bill for the
consultation fee?<g>
Thanks,
Geoff Bomford
www.comformark.com.au
Computer services For Marketing
"Arnor Baldvinsson" <ar...@icetips.com> wrote in message
news:3ead8f9e...@news.softvelocity.com...
Can you previewer also substitute for the Previewer in the standalone CW
Reportwriter?
Thanks
Steve
"Arnor Baldvinsson" <ar...@icetips.com> wrote in message
news:3ead6f9b...@news.softvelocity.com...
"Mario Reinhöfer" <m...@netzsystem.de> wrote in message
news:3ead...@news.softvelocity.com...
> I want to disable the print button in the previewer for
> demo purposes. Any ideas how to accomplish this?
> Would be great if it could be done globally.
Open the abreport.inc file and locate the class data members that are
used for the control feq's. Each one has the private attribute, change that
to protected or public, your choice, and then just disable the thing.
Then to disable globally just derive the class and disable the button and
the menu option. You could add methods to toggle the controls, technically
a better solution, but a tad bit of over kill in this situation.
Dennis
> What you can do is open the ABREPORT.INC file and remove the PRIVATE
> attribute off the following lines (92 and 95 in my file):
Thanks alot! Exactly that was it!
> I just saved you $199 but where do I send the bill for the
> consultation fee?<g>
To Iceland! Theese people must have alot more money than me
poor German. Everything is so expensive there!
I was there maybee two before your stay you described on Icetips.
Nice area. I did wonder what all theese Icelandic people are doing
during the long and dark winter period. I did guess programming and
surfing the web, my family was only laughing about that.
Mario
On Tue, 29 Apr 2003 17:04:44 +1200, "Mullers"
<jteg.muller...@clear.net.nz> wrote:
>Can you previewer also substitute for the Previewer in the standalone CW
>Reportwriter?
No, not in the standalone as far as I know - I don't know how that
thing works. I do not see any options to use external previewers in
the executable version of the Report Writer. I misread your email this
morning, sorry:( However it can easily be used to view _TXR reports_
created with the ReportWriter.