Results 1 to 2 of 2

Thread: Text Reports

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2001
    Posts
    1

    Text Reports

    How Can I Print a Text Report with Page Margins & Paper Size A4 From VB. If Anybody knows about it Please Answer this Question

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    print sample ..
    VB Code:
    1. Private Sub Command1_Click()
    2.     Dim iLeftMarg As Integer
    3.     Dim iTopMarg As Integer
    4.     Dim i As Integer
    5.    
    6.     iTopMarg = 1440
    7.     iLeftMarg = 1440
    8.    
    9.     Printer.CurrentY = iTopMarg
    10.     Printer.CurrentX = iLeftMarg
    11.    
    12.     For i = 1 To 20
    13.         Printer.CurrentX = iLeftMarg
    14.         Printer.Print "Line numero " & i
    15.     Next i
    16.     Printer.EndDoc
    17. End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width