Hi Jeff,
Sometimes Report Writer gets confused when you pull tricks like that. :)
To fix this problem, you can create your own page counter for this report. To do so
- Create Report Variable nPageNo with 'Value to Store:' nPageNo and 'Initial Value:' 1.
- Put following expression in the footer's On Exit
_VFP.SetVar("nPageNo", INT(nPageNo + 1))
- Change '_Pageno' to 'nPageNo' in the page # textbox
>I have created what I thought was the perfect report until I realized the page number was not advancing. The report will print 2 pages with "Page 1" and 2 pages with "Page 2" and so on. I think it is the result of some funky code I placed in the Print Field When expression of the fields in the detail band. The customer was adamant that all the information for each detail line fit on the same page. The only problem is one of the fields is a memo. I was able to achive this by placing the following code in the Print Field When expression. "(MEMLINES(v_bomprint.mdetaildes+_plineno) < _plength". This code made sure a line item was not printed unless all of the info could fit on the same page. However it seams to have broken the page number. Any suggestions on how to fix this?
--sb--