SetTexT(24,3,'Page ' + IntToStr(iCurrentPage) + ' of ' + IntToStr(iPageCount));
PrintOrientation := 2;
PrintSheet;
PrintOrientation是設定列印方向的,查了一下幫助檔案
Setting Description Constant
0 - Default (Default) Uses the current printer setting PrintOrientationDefault
1 - Portrait Prints sheet in portrait mode PrintOrientationPortrait
2 - Landscape Prints sheet in landscape mode PrintOrientationLandscape
2是橫向列印,當我設定成2的時候執行PrintSheet這里就會報錯
access violation at address 77C16FA3 in mscvrt.dll. Write Of address 07FC100
設定成1和0都不會報錯,唯獨設定成2橫向列印報錯,mscvrt.dll.也替換幾次也不行,求解???
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/53663.html
上一篇:用delphi寫程式,要向服務端傳資料,通過socket一次連接,發送3次資料,這個怎么取值。服務端是JAVA寫的
