Beginner's Guide to Crystal Reports, Part II: Web Apps

Part I of this article contained needed background information and dealt with Winforms. You should read it before reading this article. This article, Part II, deals with Web Apps.

Background

This demo displays reports using two Web pages: Reports.aspx and Params.aspx. You could combine these Web pages, which is easy to do. These screens contain the following:

  • Reports.aspx. This Web page has a pseudo-comboBox that displays a list of reports that the user can select from. When the user presses the "Get Report" button, a modal window called the Parameters Viewer will be launched.
  • Params.aspx. This Web page displays the parameters contained in the report selected in a datagrid that you dynamically add controls to to make selecting parameter values easier for the user. After setting the parameter values for the selected report, the user will close the Parameters Viewer and the Reports Viewer will display the selected report with the selected parameters.

Dynamically Adding Controls to Our Datagrid of Parameters

For the puposes of this article, I only implemented three control types: DateTime, TimePicker, and Radio Buttons (or CheckBoxes). For example, when a user clicks on the datagrid, if Column 2 has a value of "DateTime," a DateTime Control will appear in the data cell for the user to select a "DateTime." I should point out that some programmers prefer using a "Radio Button" for Boolean values, but I prefer using a simple CheckBox for Boolean values that I implemented in this demo. It should be obvious that you can implement ANY controls that turn you on or that a client requests.

The DateTime Picker Control

The DateTime Picker is a control that allows the user to select either a date, a datetime, and—if I get some extra time—I will add a time spinner to it. The source code for this control is included here.



About the Author

Bill SerGio

Need a VB .NET or C# .NET Web App or WinForm? Let me quote you a FLAT price and we can deliver ANY project in LESS THAN ONE WEEK COMPLETED! Our clients include over a dozen Fortune 50 and Fortune 500 clients in Los Angeles, CA. We wrote a program that writes .NET applications using "Model Applications" and we can deliver ANY .NET application at a fraction of the cost and time. Bill SerGio has written, produced and directed over 100 Famous Infomercials that starred over 100 Famous Celebries. He is listed in Marquis Who's Who in America(that's the book you CAN'T pay to be listed in!) as well as Who's Who in Advertising. My company can buy the BEST infomercial time at the LOWEST PRICES -- CALL ME! We can produce an infomercial with a famous celebrity host at NO COST to your company to sell your product if we like your product! email us: tvmogul1@yahoo.com

Downloads

Comments

  • Problem in crystal report

    Posted by kaushlendra on 06/02/2007 04:21am

    Having a problem. I want that If sex = "male" Then "Male in underline" bt not possible for me. Pls help me.

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: September 16, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT Are you starting an on-premise-to-cloud data migration project? Have you thought about how much space you might need for your online platform or how to handle data that might be related to users who no longer exist? If these questions or any other concerns have been plaguing you about your migration project, check out this eSeminar. Join our speakers Betsy Bilhorn, VP, Product Management at Scribe, Mike Virnig, PowerSucess Manager and Michele …

  • The first phase of API management was about realizing the business value of APIs. This next wave of API management enables the hyper-connected enterprise to drive and scale their businesses as API models become more complex and sophisticated. Today, real world product launches begin with an API program and strategy in mind. This API-first approach to development will only continue to increase, driven by an increasingly interconnected web of devices, organizations, and people. To support this rapid growth, …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds