locked
Crystal report to print ID card RRS feed

  • Question

  • User-2066177896 posted

    Hi,

    I have a report which prints the client's name, image, address and his ID in bar code format on a report.

    The report is generating good and no issues with printing.

    Now we want to use this same report to print ID cards.

    We have a ID Card Printer and when i try to print, the details are printed to the top left.

    Not sure how to fix this.

    We are using VS 2008 and Crystal report 10.5.

    Any suggestions on what changes have to be made to print the ID card?

    Thanks in Advance.

    Tuesday, March 15, 2016 10:19 PM

All replies

  • User1429399154 posted

    hi

    Rowter

    steps to achieve this.
    First you go to Control Panel - Printers and Faxes
    Once there in the File Menu Select Server Option properties.
    Create a new form with the measures you want; once created the form you name and save (save).
    If you had the Crystal Report Loaded, close it and reloads the program to carge pages.
    Once you have the report choose the size you created.
    That's it.

    Tuesday, March 22, 2016 12:18 PM
  • User1429399154 posted

    hi

    rowter

    Might try this code

    Private Sub Print (ByVal As Object objdataset)
    
    Dim report As New Object
    
    
    report = New rptFactura
    
    reporte.SetDataSource (objdataset)
    
    reporte.PrintOptions.PrinterName = "Epson FX-2180"
    
    'With this line the printer takes the type of seteado role in the Crystal Report
    
    reporte.PrintOptions.Papersource = CrystalDecisions.Shared.PaperSource.Auto
    
    '2 copies are printed
    
    reporte.PrintToPrinter (2, False, 1, 1)

    Tuesday, March 22, 2016 12:25 PM