Data Access Worldwide Knowledge Base

Article ID 2044
Article Title PROBLEM: PrintDialog for VDF10 is not the same as in VDF7
Article URL http://www.dataaccess.com/kbasepublic/kbprint.asp?ArticleID=2044
KBase Category VDF8
Date Created 09/29/2004
Last Edit Date 10/05/2004


Article Text
PROBLEM:
In Visual DataFlex 7, the print dialog for Crystal had two buttons labeled OK and Cancel. In Visual DataFlex 10.1 the OK button is called "Print". Since users will be choosing
the printer settings, not printing, I would like to keep the dialog the way it was before. Is there any way to do that?


SOLUTION:
The package Prnt_Dlg.pkg was modified -- not in Visual DataFlex 10.1, but in 8.x -- and the dialog displayed is different.

To go back to the old dialog (the one displayed in Visual DataFlex 7), change the following line in Prnt_Dlg.pkg:

From
Property Handle hWindows -1

To
Property Handle hWindows 0


After saving the change, you will need to precompile (from the Studio, select Tools | Precompile all packages | DfAllEnt checkbox) DFAllEnt before you see the old dialog back again.




Contributed By:
Marcia Booth
Company: Data Access Worldwide
Web Site: http://www.dataaccess.com


Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2010 Data Access Corporation. All rights reserved.

The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.