2013-06-12 63 views

回答

0

以下狐親碼使一個函數調用selprint可用於打印RTB

cdlPDReturnDC=256 
    cdlPDNoPageNums=8 
    cdlPDSelection=1 
    cdlPDAllPages=0 

    Thisform.CommDlg1.Flags = cdlPDReturnDC + cdlPDNoPageNums 
    If Thisform.RTF1.SelLength = 0 
    Thisform.CommDlg1.Flags = Thisform.CommDlg1.Flags ; 
    + cdlPDAllPages 
    Else 
    Thisform.CommDlg1.Flags = Thisform.CommDlg1.Flags ; 
    + cdlPDSelection 
    EndIf 
    Thisform.CommDlg1.ShowPrinter 
    Thisform.RTF1.SelPrint(Thisform.CommDlg1.hDC) 
的內容