Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio 2015 & .NET 4.6
  4. Printing RDLC Report with SubReports Directly to Printer

Printing RDLC Report with SubReports Directly to Printer

Scheduled Pinned Locked Moved Visual Studio 2015 & .NET 4.6
helpquestioncsharpvisual-studiowinforms
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    StacyOW
    wrote on last edited by
    #1

    I am using VS2010 so I hope it's alright that I post my question in this forum. I have a winforms app that I am trying to be able to print an RDLC report with subreports directly to the printer from the push of a button. I have the code from this link http://msdn.microsoft.com/en-us/library/ms252091%28v=vs.100%29.aspx that allows me to print directly to the printer but I can't figure out how to get it to work when the report has subreports. Everything I have researched shows examples for printing subreports using the reportviewer which I am not using. I need to be able to print directly to the printer. Can anyone help? I've been stuck on this for months. Thanks, Stacy

    P 1 Reply Last reply
    0
    • S StacyOW

      I am using VS2010 so I hope it's alright that I post my question in this forum. I have a winforms app that I am trying to be able to print an RDLC report with subreports directly to the printer from the push of a button. I have the code from this link http://msdn.microsoft.com/en-us/library/ms252091%28v=vs.100%29.aspx that allows me to print directly to the printer but I can't figure out how to get it to work when the report has subreports. Everything I have researched shows examples for printing subreports using the reportviewer which I am not using. I need to be able to print directly to the printer. Can anyone help? I've been stuck on this for months. Thanks, Stacy

      P Offline
      P Offline
      PrissySC
      wrote on last edited by
      #2

      In that code there were no subreport handles or processing. I use the reportviewer and want the preview in most of my apps so I am not very good at printing without a preview. You do need to look at the subreport processing though. As it stands the state is only opening and processing the local report and not the subreports from what I see in my quick read. http://msdn.microsoft.com/en-us/library/microsoft.reporting.winforms.localreport.subreportprocessing(v=vs.80).aspx[^] This is a good starting point to adapt the code that you are using.

      S 1 Reply Last reply
      0
      • P PrissySC

        In that code there were no subreport handles or processing. I use the reportviewer and want the preview in most of my apps so I am not very good at printing without a preview. You do need to look at the subreport processing though. As it stands the state is only opening and processing the local report and not the subreports from what I see in my quick read. http://msdn.microsoft.com/en-us/library/microsoft.reporting.winforms.localreport.subreportprocessing(v=vs.80).aspx[^] This is a good starting point to adapt the code that you are using.

        S Offline
        S Offline
        StacyOW
        wrote on last edited by
        #3

        I'm trying to find someone who has done this or figured out a work around. There is no information on printing directly to the printer with subreports without using the reportviewer. I've tried the microsoft forums and they couldn't even figure it out. Thanks anyway, Stacy

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups