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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Passing a parameter to a Crystal Report via an ASP page [modified]

Passing a parameter to a Crystal Report via an ASP page [modified]

Scheduled Pinned Locked Moved Visual Basic
csharpasp-netsysadminhelptutorial
1 Posts 1 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.
  • B Offline
    B Offline
    bazpaul
    wrote on last edited by
    #1

    I wonder can someone help me with a project im working on I am currently creating an WebSite in asp.net, which links to some crystal reports. Now im new to asp.net and dont have an advanced level of VB knowledge. However i was able to view the reports on an .aspx page using the crystalreportsviewer object. Now what im trying to do seems extremely simple but yet i havent found a simple explanation on the web. My report designed in VisStudio 2005, prompts for a parameter before executing and displaying the result. So simply, what i would like to do is link to the report and pass this parameter without having to manually enter it on the webpage! So i am going to pass the value via a querystring into the page to contains the viewer, upon which the code will set this value as the parameter and request the report! Here's the code i have with just the viewer; <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <%@ Register TagPrefix="CR" Namespace="CrystalDecisions.Web" Assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" %> Untitled Page < CR:CrystalReportViewer ID="CrystalReportViewer1" Runat="server" AutoDataBind="True" Height="947px" ReportSourceID="CrystalReportSource1" Width="845px" /> < CR:CrystalReportSource ID="CrystalReportSource1" runat="server"> < /Report> < /CR: CrystalReportSource> I have read article that say to use the reportdocument class, but i cannot find sny information on how to use this! Surely there HAS to be a simply way of setting the parameter, something like this: parameter.name.value = "Value" Anyway any help would be greatly appreciated! -- modified at 4:50 Tuesday 23rd January, 2007

    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