Yes the ctrl+p did not work for vfp 9.0. Not sure for earlier releases but did not try with a version before vfp 9.0
I got around it by creating a toolbar with one button on it that set a public variable to a value that meant something to the calling program and then clicking the
Print button...
This is faq184-4480
============================
If you are not happy with the toolbar that controls the report preview screen, why not build your own? This FAQ does not give step-by-step instructions for creating a toolbar, but it will give you an idea of what code to put in the Click events of...
Ok it is as I suspected then in order to add your own code and button to the custom toolbar you would have to create a regular toolbar and do the whole thing yourself. Thanks for pointing me in the right direction.
In the vfp menu I chose Toolbars then New then entered my new toolbar name. Then I chose customize and then highlighted the Print Preview line and dragged all of those controls onto my new toolbar. After doing that is there a way to put my own button on that toolbar with my own code in it. If...
In ALL cases I was changing the windowtype property in the init. In the cases of the forms where I receieved the error "Property is read only" I also tried changing the windowttype property in the first line in the init and the first line in the load. I receved the same error. When I tried to...
Thankyou TamarGranor . I used this code and it worked perfectly. A bit puzzling though as I swear there are forms where I don't have to set the form to Visible=.F.
befor I change the windowtype and works fine with no error
but not on others. Anyway the code below solved it.
THIS.Visible=.F...
I want to set a form to Modal or Modeless depending on the value of a parameter passed. Am trying to set the WindowType property in the init of the form.
On some forms it works fine on others I am receiving a "Property is read only" error. I am using VFP 9.0.
Anyone else run into this problem?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.