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. C#
  4. FileStream.Write Only particular pages of Report as PDF?

FileStream.Write Only particular pages of Report as PDF?

Scheduled Pinned Locked Moved C#
csharpvisual-studioquestion
2 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.
  • P Offline
    P Offline
    Paramu1973
    wrote on last edited by
    #1

    Hi Iam using VS-2010. Windows Applications. The below codes to save the report as PDF in c#...But I wish to save the particular part of report as PDF... Note: Suppose My report contains 4-Copies with 8 pages, my intention is to save only the "Transporter Copy" as mentioned in Report Header area. Is it possible to save only the particular copy of reportviewer's report...? Thanks:thumbsup: My Codes

    byte[] Bytes = Reportviewer1.LocalReport.Render(format:"PDF",deviceInfo:"");
    using (FileStream stream = new FileStream("C:\MyFolder", FileMode.Create))
    {
    stream.Write(Bytes, 0, Bytes.Length);
    }

    Richard DeemingR 1 Reply Last reply
    0
    • P Paramu1973

      Hi Iam using VS-2010. Windows Applications. The below codes to save the report as PDF in c#...But I wish to save the particular part of report as PDF... Note: Suppose My report contains 4-Copies with 8 pages, my intention is to save only the "Transporter Copy" as mentioned in Report Header area. Is it possible to save only the particular copy of reportviewer's report...? Thanks:thumbsup: My Codes

      byte[] Bytes = Reportviewer1.LocalReport.Render(format:"PDF",deviceInfo:"");
      using (FileStream stream = new FileStream("C:\MyFolder", FileMode.Create))
      {
      stream.Write(Bytes, 0, Bytes.Length);
      }

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      You've been here six and a half years - that's certainly long enough to know that posting the same question three times is not going to make people rush to help you. :suss: How to save the reportviewer particular contents of report as PDF?[^] How to save the reportviewer particular contents of report as PDF?[^]


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      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