using dataset in crystal report in

Hi alI,

I want to use the user defined data set in run time in for eg. A user wants to put data in run time for that particulart filed  all data should be taken from database.

Can Any 1 suggest me what to do.







12/27/2008 1:45:48 PM 3721 articles. 0 followers. Follow

5 Replies

Similar Articles

[PageSpeed] 40
Get it on Google Play
Get it on Apple App Store

Create a typed dataset of the dataset u r using for the gridview using ds.WriteXMLSchema("C:\data.xsd").

Add it to ur application code folder

Create an object of the typed dataset.

Get dataset into it. Bind it to the gridview. Keep the dataset in session so that u can reuse it

Then create a crystal report Go to database fields - > -> Add connection -> give the path of the data.xsd you created in ur app_code folder.

In the crystal report in the page header put ur headers for each column

Below add a detail section there u drag the respective fields from the new dataset you added under the headers

Now in the code section do the following

Bind the dataset u kept in seesion to the report on button click


If u are stuck somewhere post it I'll reply

MAKMark as Answer if this reply helps you
ASP.Net Hosting : Host DepotMy Site : ASPSnippets
12/27/2008 2:23:20 PM

Try looking at this:

Christopher Reed
"The oxen are slow, but the earth is patient."
12/27/2008 2:41:57 PM



as i am using windows application please tell me how to get the report by entering the data in run, that for that data complete related data should show from database.



12/28/2008 6:35:19 AM

Get the data in user defined dataset and bind it to ur crystal report viewer


Private Function GetData(ByVal strQuery As String) As YourUDFDataset

Dim ds As New YourUDFDataset

Dim strConnString As String = "Your Connection string"

Dim con As New SqlConnection(strConnString)

Dim cmd As New SqlCommand(strQuery, con)Dim sda As New SqlDataAdapter

cmd.CommandType = CommandType.Text



sda.SelectCommand = cmd


Catch ex As Exception

Return ds





End Try

Return ds

End Function

MAKMark as Answer if this reply helps you
ASP.Net Hosting : Host DepotMy Site : ASPSnippets
12/28/2008 7:27:55 AM

You need to ask this questions in the MSDN Forums, not under ASP.NET.

Christopher Reed
"The oxen are slow, but the earth is patient."
12/28/2008 1:43:18 PM

Similar Artilces:

Sending SMS using or using or
Hi  My requirement is I hav one csv file with these fields id,mobilenum,messgae,status.intiallu staus is 0. once i read the all fileds and take that mobile number.using tat mobile number  i need to send sms .after sending sms i shuld change status as 1 How to send sms thru coding (please dont provide any links.if it is provide also please give working links becox i checked codeproject .i didnt get any nice link. and also provide the how to update the status field im csv file   Thank ssandhya   To send SMS, you need some third party SMS providers. if you consul...

upgrading to 2003 crystal report viewer problem.
I have a web. app that has several pages each with a different crystal report on it. It works perfectly under I've since installed 2003. After I open the solution in 2003 & it does its upgrade, all of the crystal report viewer controls are corrupted. If I try to run it as is I get the following error: "The base class includes the field 'myname' but its type (CrystalDecisions.Web.CrystalReportViewer) is not compatible with the type of control(CrystalDecisions.Web.CrystalReportViewer). So I tried deleting the control and adding back on. & when I ru...

crystal reports .net -> crystal reports .net 2003
recently converted a project from .net to .net 2003. The 2 crystal reports I had in the project do not load when executing the application. The project itself within 2003 will allow me to multiplat the crystal reports, however when it comes to execution time I get the error: Invalid Data Source. If this isn't the right forum please point me to the right one as this is really the only website I know of with a large reader base. >to multiplat the crystal reports To what the crystal reports? Do you have the same database connections established and verified in your 2003 s...

use VB.NET and C#.NET code in the same C#.NET project
All-- Here is a sample that is "off the beaten path", (at least for me). Is it possible, in an ASP.NET application, using the code-behind page building technique, to have both pages written in VB.NET and pages written C#.NET?At there is a sample that shows that, (contrary to popular belief), it IS possible to mix ASP.NET pages built with C#.NET with ASP.NET pages built with VB.NET in the same VS.NET 2003 project. Note that this is just a "fun" sample to see if it can be done and I do not recommend this practice as a "standard" way of develo...

Visual Studio .Net? Visual Basic .Net?
Okay, I admit it -- I know nothing about .Net. I'm a Visual Basic and ASP developer. DotNetNuke is my first tentative step into the whole ".Net Thing", and I'm looking for some advice... What do I really need to be able to make some modifications, or new modules for DotNetNuke? Do I need the full, THOUSAND DOLLAR Visual Studio .Net 2003 package, or can I get away with the HUNDRED DOLLAR Visual Basic .Net Standard package?Chameleon Systems, Inc. You can use webmatrix, available here for free. One of the drawbacks of webmatrix however is that it does not support code-be...

Visual Basic.NET or Visual Studio.NET?
OK, this has probably been asked before... I'm a student looking to cut my costs, and I can do this by just purchasing Visual Basic.NET as opposed to the fully-fledged Visual Studio.NET application. Of course, I'll only be able to program in VB, but that's fine with me. I wanted to know if all of the ASP.NET specific options are available, such as using a WYSIWYG editor? I'd also like to know if VB.NET has IntelliSense, or that's a specific option only available to Visual Studio.NET users. Thanks in advance. I'd have to believe that VB.Net has intellisense. What is the price d...

What are the diff. visual basic 6 and ? How to convert the VB6 project to proj ?
What are the diff. visual basic 6 and ? How to convert the VB6 project to proj ? with code and interface too. There are entire forums dedicated to the differences between the two, and to convert your projects you should try the upgrade wizard in Visual Studio....

How to pass parameter in crystal report using dataset in
 dear friends              i am new to crystal report. so i need the detail explanation on crystal report in i want to create crystal report using dataset,i want to pass parameter value in crystal report or dataset.regards Samuel chandradoss John  Thanks and regardsSamuel Chandradoss John you can refer here   and also as Answer if this reply helps youMVP ASP/ASP.NetASP.Net Hosting : Host DepotM...

Visual Basic.NET or Visual Studio.NET? #2
I am currently using the Web Matrix to develop ASP.NET applications, but I am keep to upgrade to VS.NET. However, I can't justify spending $1,000 at the moment. I then found the MUCH cheaper "Visual Basic .NET 2003 Standard Edition" which is only $100. I have very little C# knowledge, and use Basic almost all the time. Would this be a good tool to use for web development? Does it support all the code behind stuff that VS users love so much? Thanks!! I use "VB.NET Standard Edition" and I'm happy with it. It has exactly the same features as Visual Studio.NET. Th...

using Crystal Report 8 with Visual Basic .NET 2003 Standard Edition
Hi I am using Visual Basic .NET 2003 Standard Edition. I also have Crystal Reports. I have been able to access Crystal Reports in window application. I do not know how to use Crystal Reports in web based application. Can anybody help  Dashisht Hi, I am not sure what the options are with CR 8 as far as integrating into is concerned. I have integrated 8.5, and had to do it via legacy ASP support, and I suspect that version 8 will be the same. I presume that with version 8 in winforms you had to use it via the ActiveX? I am not sure on your product options, but versions of ...

how to work with XMLSchema.xsd with disconnected dataset using for builiding crystal report
hai! i heard recently we can build crystal reports dynamically through xmlschema.xsd so, how to work with XMLSchema.xsd with disconnected dataset using for builiding crystal report...

Visual Studio.Net and VB.Net
Can we install VS.Net and VB.Net on the same machine and work side by. Is there any thing I need to worry about? I use VS.Net enterprise for my office work and I am planning to buy VB.Net standard for my personal use. Before I goahead and buy, I wanted to make sure that it works. Thanks for your help. Anil...

use of and
i make a small website using,  in it i make a 2 class in that i want to use in that website, i dont know how to call that class. let your class is  - class clsMyClass    {        public void myFunction()        {            // do something        }    } now the first way - create objectclsMyClass myObj = new clsMyClass();myObj.myFunction(); // call function================...

converting to from offered me some sample code when I signed up with them the only problem is the sample code is in but my page that they type all of their credit card into is <code><%@ Import Namespace="System.Net" %> <%@ Import Namespace="System.IO" %> <script language="C#" runat="server"> void Page_Load(Object Src, EventArgs E) { myPage.Text = readHtmlPage(""); } private String readHtmlPage(string url) { ...

Web resources about - using dataset in crystal report in -

Data set - Wikipedia, the free encyclopedia
For IBM mainframe term for a file, see Data set (IBM mainframe) . For the telecommunications interface device, see Modem . A dataset (or data ...

Data : Where can I get large datasets open to the public?
Answer (1 of 91): Here's the ones I've found most useful: CrunchBase, US Census, Google Public Data, Infochimps, Timetric, Factual, Freebase, ...

YouTube - Hans Rosling: Let my dataset change your mindset
Hochgeladen am 31.08.2009 Talking at the US State Department this summer, Hans Rosling uses his fascinating data-bubble software ...

The Mindset, Skillset, Dataset Approach to Social Media
... Social media is comprised primarily of unstructured data, which is difficult to analyze. A new approach called Mindset, Skillset, Dataset can ...

Sending large datasets to Amazon? Use the Post Office
Amazon has introduced a new method to move large amounts of data to and from …

IDG Contributor Network: Are datasets truly anonymized? Two well-suited researchers are going to find ...
With little fanfare or formality, Adam Smith , associate professor of computer science and engineering in Penn State's School of Electrical Engineering ...

House GOP looks to shed light on EPA secret datasets
House Republicans have introduced a bill that would block the Environmental Protection Agency from crafting regulations based on “secret” scientific ...

Google Making It Easier to Transfer Huge Datasets on the Cloud
... Cloud Import services are now in preview mode, but could later be available on a widespread basis to help enterprises move their large datasets ...

Environmental datasets, reverse auction legislation and military email
News and notes from around the federal IT community. The White House's has added five datasets to the Ecosystem Vulnerability theme ...

Easily Manipulate Terabyte-Sized Datasets With GraphLab
Easily Manipulate Terabyte-Sized Datasets With GraphLab

Resources last updated: 11/25/2015 3:03:32 PM