Print directly to the printer without Preview

Posted by: lffiallos on 3 May 2018, 9:00 am EST

    • Post Options:
    • Link

    Posted 3 May 2018, 9:00 am EST

    Good afternoon, I need your help, I am developing an application in visual basic 2010 using active reports 3, but I do not want the preview to appear, I need to print directly to the printer, that the preview does not appear on the screen.

    thank you very much for your help,

  • Posted 3 May 2018, 9:34 pm EST

    Hello,

    Please use the following line of code to achieve your requirement:

    
             ActiveReport1 rpt = new ActiveReport1();
                rpt.Run();
                rpt.Document.Print(false, false);
    
    

    Also, please sure you have added the reference of “AcitveReports.Viewer” assembly.

    Thanks,

    Mohit

  • Posted 4 May 2018, 4:55 am EST

    Thank you very much for your help, it actually prints directly to the printer, but what I also want is that the screen of the print preview does not appear,

    can you help me with this,

  • Posted 6 May 2018, 5:37 pm EST

    Hello,

    I am unable to reproduce the issue at my end. “Print Preview” screen does not appear at my end. Could you please share the sample application to reproduce the issue at my end.

    Thanks,

    Mohit

  • Posted 16 June 2018, 6:20 am EST

    Como faria este código funcionar no vb6???

         ActiveReport1 rpt = new ActiveReport1 (); 
            rpt.Run (); 
            rpt.Document. Imprimir ( falso , falso );
    
  • Posted 17 June 2018, 6:04 pm EST

    Hello,

    Use following line of code to print Report in VB6

    
    Dim rpt As New ActiveReport1
    rpt.PrintReport False 
    
    

    Hope it helps,

    Thanks,

    Mohit

  • Posted 18 June 2018, 5:41 am EST

    Mohitg

    thank you!

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels