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. Asp.NEt

Asp.NEt

Scheduled Pinned Locked Moved ASP.NET
csharpasp-net
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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I have created an asp.net application(vb.net code behind) I have used crystal report as the reporting tool and used pdf for printing the values from the report.I used thebelow code for printing from the pdf document.while I uploaded it nothing is shown as report.But in local copy it is working.Pls give some suggestions Dim Export_Options As ExportOptions Dim Disk_FileDestinationOptions As DiskFileDestinationOptions Dim File_Name As String Dim Report_Filename As String File_Name = System.AppDomain.CurrentDomain.BaseDirectory + Report_Filename + ".pdf" Disk_FileDestinationOptions = New DiskFileDestinationOptions Disk_FileDestinationOptions .DiskFileName =File_Name Export_Options = CrptDoc.ExportOptions With Export_Options .DestinationOptions = Disk_FileDestinationOptions .ExportDestinationType = ExportDestinationType.DiskFile .ExportFormatType = ExportFormatType.PortableDocFormat End With CrystalReportdocument.Export() Response.ClearContent() Response.ClearHeaders() Response.ContentType = "application/pdf" Response.WriteFile(File_name) Response.Flush() Response.Close() System.IO.File.Delete(File_name) End Sub

    R 1 Reply Last reply
    0
    • L Lost User

      I have created an asp.net application(vb.net code behind) I have used crystal report as the reporting tool and used pdf for printing the values from the report.I used thebelow code for printing from the pdf document.while I uploaded it nothing is shown as report.But in local copy it is working.Pls give some suggestions Dim Export_Options As ExportOptions Dim Disk_FileDestinationOptions As DiskFileDestinationOptions Dim File_Name As String Dim Report_Filename As String File_Name = System.AppDomain.CurrentDomain.BaseDirectory + Report_Filename + ".pdf" Disk_FileDestinationOptions = New DiskFileDestinationOptions Disk_FileDestinationOptions .DiskFileName =File_Name Export_Options = CrptDoc.ExportOptions With Export_Options .DestinationOptions = Disk_FileDestinationOptions .ExportDestinationType = ExportDestinationType.DiskFile .ExportFormatType = ExportFormatType.PortableDocFormat End With CrystalReportdocument.Export() Response.ClearContent() Response.ClearHeaders() Response.ContentType = "application/pdf" Response.WriteFile(File_name) Response.Flush() Response.Close() System.IO.File.Delete(File_name) End Sub

      R Offline
      R Offline
      Rahul Walavalkar
      wrote on last edited by
      #2

      Are you sure, you have used proper deployment techniques for deploying asp.net applications bundled with crystal reports. There are licensing issues and you'd also need to include the crystal merge modules in your deployment package. Check it out here.. http://www.businessobjects.com/communityCS/TechnicalPapers/crnet_deployment.pdf[^] Hope it helps, cheers, [r a w] I do not understand what I do. For what I want to do I do not do, but what I hate I do. - Romans 7:15

      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