473,388 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

How to pass parameters using a crystalreport object in a console application?

Can someone help how to pass parameters to a crystal report using a Crystal report object? I am using a console application & hence crystal report viewer cannot be used. And i need to pass the parameter through a batch file at run time?

I have included a code here to pass parameters, but its giving invalid index error when i try to pass parameters:

report1 = app.OpenReport(sfilename)
crxDatabase = report1.Database
crtables = crxDatabase.Tables
For Each crtable In crtables
crtable.SetLogOnInfo ("servername", "databasename", "username", "password")
Next crtable
report1.ParameterFields.Item(0).AddCurrentValue(1)
report1.ParameterFields.Item(1).AddCurrentValue("r esult")
Feb 26 '07 #1
0 2076

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

Similar topics

1
by: Henry Chen | last post by:
We have a multi-tier application using .net remoting. In server side, I can use either service and console application to process client request. I sometimes can not find the problem with the...
3
by: Gionni | last post by:
Hello everyone, I'm have a window application, but it is a console application too. I'll try to explain better: if I call the program without parameters the GUI starts. Otherwise it runs as a...
1
by: Michael Hetrick | last post by:
How would I pass parameters to a console application? I would like to do something like this: consoleapp.exe /o \\fileshare\origindirectory /d \\fileshare\destinationdirectory I'm not sure...
2
by: El Camino | last post by:
Howdy all On a window application vb.net a 'frmOne' open a 'frmTwo' from 'frmTwo' i get and ID when i close 'frmTwo', i want to pass the ID to 'frmOne' to initialize a List view
4
by: thinktwice | last post by:
here is what i what to do; //pesudo code iter = container.begin(); while (iter != container.end()) { myclass *obj =my_cast (*iter); obj->func(arg1, arg2); } i want to simplify those code...
2
by: Ramya A | last post by:
Hi All: I have a .NET webservice accepting an XML request document as a parameter How do I call this webservice with ServerXMLHTTP object from my VB6.0 client? I have enabled the HttpPost...
1
by: JupeMarsInc | last post by:
Hi, I'm using a simple console application project in VC++ (not a window one). my question is, how can I hide the console window,prevent it from popping up when i run my program? Thank you
1
by: menmysql | last post by:
hi to all i want to send multiple parameters using javascript. i am trying as follows <a href="./Admin.jsp?per=null?per1=null">
5
by: codingZZ | last post by:
How do you convert a console application to a windows service.Any recommendations? The following code is below using System; using System.Collections.Generic; using System.Linq; using...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.