Data Access Worldwide Knowledge Base
Article ID 2022 Article Title ERROR: Could not position header ! Article URL http://www.dataaccess.com/kbasepublic/kbprint.asp?ArticleID=2022 KBase Category WINPRINT Date Created 07/14/2004 Last Edit Date 07/14/2004
Article Text
PROBLEM:
I am getting the following error on some reports using Winprint2 after I enter selection information and press print button:
"Could not position header !"
What could be wrong?
SOLUTION:
This error is triggered when the DFHEADERPOS command receives an error from WinPrint2.
Things that could trigger the error are...
1) You somehow called this command before the WinPrint document was started, or after it was finished. This is unlikely if you are using the command in the standard way inside a cWinReport2 object because this object will handle starting and stopping the document for you in the correct way.
2) You are passing an invalid parameter to the command. This seems the most likely cause. Valid parameters are defined by the constants HDR_LEFT, HDR_RIGHT, HDR_CENTER.
Contributed By:
John van Houten
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.