473,513 Members | 2,469 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

data report runtime code

3 New Member
I HAVE A FOXPRO DATABASE,AS IN FOXPRO WE GENERATE REPORT BY TAKING DIRECT INPUT FROM THE USER.NOW,I WOULD LIKE TO DO THE SAME IN VB6.I WOULD TAKE INPUT FROM THE USER(Eg:empno = 99999) and want to generate report using datareport which is already created
Oct 24 '06 #1
2 2483
samvb
228 New Member
I HAVE A FOXPRO DATABASE,AS IN FOXPRO WE GENERATE REPORT BY TAKING DIRECT INPUT FROM THE USER.NOW,I WOULD LIKE TO DO THE SAME IN VB6.I WOULD TAKE INPUT FROM THE USER(Eg:empno = 99999) and want to generate report using datareport which is already created

do this: have a command under connection1 for eg. the cmd src be sql:
select id,name from members where (memid= ?)

in the parameters tab, make the name of the parameter (Default name is ? which is invalid) to something like mymemberid.

From your vb from pass memid to the cmd like this
dataenvrionmentname.cmdname memberid
datareport.show


hope that helps u out.

sam
Oct 24 '06 #2
KAMALAKAR
3 New Member
thank you ,i have got it.still an error "rowset cannot be ..." is popping up. i'll handle it .thank you
Oct 24 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
14235
by: Rick Thiel | last post by:
Hello, I am trying to build a Crystal report VisualStudio.NET for an ASP.NET application. I would like to build a report that doesn't connect to any particular database at design time because I am planning to pass a dataset to the report at runtime. From what I have read, it sounds like unbound fields might be the answer. However, I am...
1
2768
by: JK | last post by:
In my win form, I'm trying to display a Crystal report with the data in my dataset only but, if I follow the steps in this msdn page: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/crystlmn/html/crtsksettingupanado.netreportinaviewer.asp it always displays all the data regardless of the Select statement I run. Here's my...
3
6739
by: Thad | last post by:
I'm new to C# and I was trying to create a Crystal Report. I've designed a simple report and I've used several methods for attaching fields to the report at design time. I've used a DataSet that I've created by add new item, and I've used the add command and used an actual SQL statement, and I've used the OLEDB ADO and connected to my...
0
1711
by: Timmy Jones | last post by:
Hey all, I am trying to try get a crytal report running properly. A "Hello World" report that does not add criteria to the record selection formula of the report (either in the development tool, or in the code) works fine. However, when I try to add any parameter through the record selection formula and/or the report parameters method,...
3
7158
by: Xpeppe | last post by:
Hy, i read the article in msdn2 Using a Database Data Source with the ReportViewer Windows Forms Control in Local Processing Mode But i don want to use the designer assosation to the report, i want to define by code (at run time) the report and the data source to be display. example :
8
9198
by: Richard Collette | last post by:
When attempting to debug a webservice, I get the error: Cannot serialize member System.Exception.Data of type System.Collections.IDictionary, because it implements IDictionary. In reading about web services (http://msdn2.microsoft.com/en-us/library/ds492xtk.aspx), the documentation states that exceptions will automatically be handled as a...
3
3036
by: Tyranno.Lex | last post by:
I am using Visual Studio .NET 2003 and have successfully deployed a commercial web application written in C# and ASP.NET. I am now wanting to add reporting using Crystal Reports and am having a devil of a time doing this. The problem is that my application uses an encapsulated data tier for accessing the database vs. accessing it directly...
1
1600
by: sudhirarora | last post by:
I have created one VB Data report for which I am using Data Envoirnment. The commandtext of Data envoirnment's command is changed at runtime and the report comes correctly. However when I run the report again with changed commandtext, the data report shows the old data only. If I close the application and run again with changed commandtext it...
0
2719
by: shanmukhi | last post by:
Hi All, i am very new to crystal reports.. how can i run crystal report(rpt file) from a jsp page.. i tried somthing by getting code from google my applicaction structure is like this AppReports Reports *.rpt
1
4131
by: anubis2k7 | last post by:
Hi, I am having a problem with dynamically sorting/grouping data in my report at runtime. My problem is that when the report is run using sorting/grouping I am missing data. Specifically, my situation is that I have a query that contains results from 2 tables that have a one to many relationship to each other (ex. 1=Contact, M=Contact...
0
7177
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7394
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7542
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5701
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4756
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3248
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
1611
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.