Solved

Report from QueryString

Posted on 2014-10-24
2
111 Views
Last Modified: 2014-10-24
I'm fairly new to asp.net developing and probably trying to do something simple. I am using a Devexpress report and I want to use the querystring in the url to retrieve my report from the hyperlink in my default page. ~\Invoices\Print.aspx?OrderID=1234

When I run the report in the development side it runs fine through the parameter's scheme but I'm just having trouble grabbing the OrderID and implementing it in the report.

Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
        ReportViewer1.Report = CreateReport()
    End Sub

    Private Function CreateReport() As XtraReport
        Dim report As New PrintInvoices()
        report.orderID.Value = GetSelectedValue(1)
        report.CreateDocument()
        Return report
    End Function

Open in new window


So i'm trying to get the value for the GetSelectedValue() function. Not sure if i'm going about this the right way.
0
Comment
Question by:Southern_Gentleman
2 Comments
 
LVL 11

Accepted Solution

by:
LordWabbit earned 500 total points
ID: 40402264
I'm assuming GetSelectedValue looks something like this

    Public Function GetSelectedValue() As Integer
        Return Convert.ToInt32(Request.QueryString("OrderID"))
    End Function

Open in new window

0
 

Author Closing Comment

by:Southern_Gentleman
ID: 40402447
Easy enough. Thank you
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question