Results 1 to 4 of 4

Thread: crystal reports on dot matrix printer

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2006
    Location
    nasik,india
    Posts
    909

    Smile crystal reports on dot matrix printer

    How to change crystal reports settings for dot matrix printer ?
    I have deigned my report same in general way but it takes time for printing on dot matrix printer.
    pls help me.
    WHETHER YOU SUCCEED OR FAIL IS NOT AS IMPORTANT AS WHETHER YOU TRIED YOUR BEST

  2. #2
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,510

    Re: crystal reports on dot matrix printer

    The best way I've found to print from a dot matrix in VB is to print directly to "LPT1", like
    Code:
        Dim nLn%
        
        Open "Lpt1" For Output As #1
        
        With adoGlmast.Recordset
            If .RecordCount Then
                .MoveFirst
            End If
            nLn = 99
            Do While Not .EOF
                If nLn <> 99 Then
                    Print #1, Chr(12)
                    nLn = 0
                Else
                    nLn = 0
                End If
                Print #1,
                Print #1, ""
                Print #1, "TESTING"
                Print #1, ""
                Print #1, Plns("GENERAL LEDGER CHART OF ACCOUNTS")
                Print #1, ""
                Print #1, Plns(Date)
                Print #1, ""
                Print #1, ""
                Do While nLn < 50
                    Print #1, Spc(20); !glacct + "  " + !gltitle
                    .MoveNext
                    nLn = nLn + 1
                    If .EOF Then
                        Exit Do
                    End If
                Loop
            Loop
            Print #1, Chr(12)
        End With
        Close #1
    Good Luck

  3. #3
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: crystal reports on dot matrix printer

    Check the printer configuration in Start / Printers & Faxes / YourPrinter
    1 Maybe your printer is slow
    2 Maybe the printer driver is not the adecuate
    3 Maybe you are printing bold case everything
    4 maybe you are printing high quality
    5 and so on...

  4. #4
    Fanatic Member
    Join Date
    May 2003
    Posts
    758

    Re: crystal reports on dot matrix printer

    Printing from Crystal Reports to a dot matrix is going to be slow. From what I have found, there is no way around that if you want to use Crystal Reports.

    If you are using VB6, the post from wes4dbt is the way to go. If you are using .Net, then you will want to look at http://support.microsoft.com/kb/322090.
    My.Settings.Signature = String.Empty

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