AdBlock Detected

We provide high-quality source code for free. Please consider disabling your AdBlocker to support our work.

Buy me a Coffee

Saved Tutorials

No saved posts yet.

Press Enter to see all results

How To Crystal Report option that directly print to the printer in the network

By pushpam abhishek
Listen to this article

How to Crystal Report option that directly prints to the printer in the network



How to Crystal Report option that directly prints to the printer in the network

The following source code simply prints a file using vb.net that directly print to the network printer. If you wanted to try this code, you are required to install SAP Crystal Reports and Visual Studio 2010. However, in VS2010 required a configuration. try this source code, you almost succeed.

Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared

Public Class Form1
    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        Dim report As New ReportDocument
        report.PrintOptions.PrinterName = "\\cpc-7e894b46ad8\Canon iP1900 series"
        report.Load("C:\Users\P@ssw0rd\Documents\Visual Studio 2010\Projects\Testing Print\Testing Print\CrystalReport1.rpt", OpenReportMethod.OpenReportByDefault)
        report.PrintToPrinter(1, False, 0, 0)
    End Sub
End Class

Share this post

pushpam abhishek

About pushpam abhishek

Pushpam Abhishek is a Software & web developer and designer who specializes in back-end as well as front-end development. If you'd like to connect with him, follow him on Twitter as @pushpambhshk

Comments