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. Web Development
  3. ASP.NET
  4. Crystal Report Question

Crystal Report Question

Scheduled Pinned Locked Moved ASP.NET
questionhelptutorial
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.
  • J Offline
    J Offline
    just3ala2
    wrote on last edited by
    #1

    Dear All, I have implemented a crystal report on VS2003 and i have 2 problems, First, i donno how to actvate a print button "it used to be there in VS2005" the second problem is that there is about 300 blank pixels on the left of the report so whe i use the standard print "from the explorer" the page is split into 2 pages (horizontally). U use landscape paper... Any clues of how i can solve this? Thanx in advance

    Best Regards 3ala2 :)

    A 1 Reply Last reply
    0
    • J just3ala2

      Dear All, I have implemented a crystal report on VS2003 and i have 2 problems, First, i donno how to actvate a print button "it used to be there in VS2005" the second problem is that there is about 300 blank pixels on the left of the report so whe i use the standard print "from the explorer" the page is split into 2 pages (horizontally). U use landscape paper... Any clues of how i can solve this? Thanx in advance

      Best Regards 3ala2 :)

      A Offline
      A Offline
      Abolfazl Sheikhloo
      wrote on last edited by
      #2

      u can use following method to fix your all problems. convert your ReportDocument to pdf file and show pdf file in browser. and code's of this method:

         System.IO.MemoryStream oStream;
      
         oStream = (System.IO.MemoryStream)rptDoc.ExportToStream(
      		CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
         Response.Clear();
         Response.Buffer= true;
         Response.ContentType = "application/pdf"; 
         Response.BinaryWrite(oStream.ToArray());
         Response.End();
      

      We Can Do Anything, If We Want It

      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