trying out the community vpe, I use powerbasic with windows 7 pro.
problem : when I use a different print dll (which is no longer supported) I would output a file line by line and then that dll would read the file to a preview dialog.
now with vpe the first page prints 52 lines and all the other pages from page two prints only one line per page on a loop of 130 lines. tried the height and autobreak, no change.
*************************************************************************************************************** PB code
CALLBACK FUNCTION PRTTEST()
LOCAL Result2, hWndParent, hDoc, I AS LONG, X, X2 AS SINGLE
DIM txtout1 AS STRINGZ * 40
hDoc = VpeOpenDoc(hWndParent, "Test", 0)
VpeSetUnitTransformation(hDoc, %VUNIT_FACTOR_INCH) ' // inch
VpeSetRulersMeasure(hDoc, %INCH)
txtout1 ="hello 1": X=.5: X2 =1.5
VpeWrite(hDoc, .5, X, 6, X2, txtout1)
' VpeSetPageHeight(hDoc,5)
' VpeSetAutoBreak( hDoc, %AUTO_BREAK_ON )
FOR I=2 TO 130
txtout1="hello "+STR$(I)
X = X+.2: X2=X2+.2
VpeWrite(hDoc, .5, X, 6, X2, txtout1)
NEXT
VpePreviewDoc(hDoc, BYVAL 0, %VPE_SHOW_NORMAL)
END FUNCTION
CALLBACK FUNCTION ENDPROG()
DIALOG END CBHNDL, 1
END FUNCTION
***************************************************************************************************** pb code