Data Access Worldwide Knowledge Base
Article ID 2094 Article Title INFO: #zerosubpagecount# Article URL http://www.dataaccess.com/kbasepublic/KBPrint.asp?ArticleID=2094 KBase Category VDF11 Date Created 03/03/2005 Last Edit Date 04/02/2005
Article Text
QUESTION:
When I put the following line in subheader1
DFWrite '#zerosubpagecount#' // Start with page 1 again
This does not work.
e.g. VDF7 page 1, page 2, break, page 1, page 2
e.g.VDF11 page 1, page 3, break, page 3, page 4, page 5 which is blank
Is #zerosubpagecount# broken?
ANSWER:
#zerosubpagecount# will clear the counter that WinPrint uses when substituting the #subpagecount# symbol.
Example:
DFWrite "#zerosubpagecount#"
DFWriteln "Page: #subpagecount#" (FONT_DEFAULT)
Should print "Page: 0"
I would not try combining these symbols in the same physical DFWrite command.
Note:
When in a header procedure, the DFWriteln "#zerosubpagecount#" has to be wrapped in a DFBeginHeader DFEndHeader block.
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.