473,413 Members | 1,854 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,413 software developers and data experts.

parameter prompt appears but shouldn't, cr 9 and vb .net 2002,

Here's the code: how do I prevent the parameter prompt from appearing during run time? Thanks

Imports CrystalDecisions.CrystalReports.Engin
Imports CrystalDecisions.Share

Public Class Form
Inherits System.Windows.Forms.For

#Region " Windows Form Designer generated code

Public Sub New(
MyBase.New(

'This call is required by the Windows Form Designer
InitializeComponent(

'Add any initialization after the InitializeComponent() cal

End Su

'Form overrides dispose to clean up the component list
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean
If disposing The
If Not (components Is Nothing) The
components.Dispose(
End I
End I
MyBase.Dispose(disposing
End Su

'Required by the Windows Form Designe
Private components As System.ComponentModel.IContaine

'NOTE: The following procedure is required by the Windows Form Designe
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor
Friend WithEvents CrystalReportViewer1 As CrystalDecisions.Windows.Forms.CrystalReportViewe
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent(
Me.CrystalReportViewer1 = New CrystalDecisions.Windows.Forms.CrystalReportViewer (
Me.SuspendLayout(

'CrystalReportViewer

Me.CrystalReportViewer1.ActiveViewIndex = -
Me.CrystalReportViewer1.Dock = System.Windows.Forms.DockStyle.Fil
Me.CrystalReportViewer1.Name = "CrystalReportViewer1
Me.CrystalReportViewer1.ReportSource = "C:...blahblah\CrystalReport1.rpt
Me.CrystalReportViewer1.Size = New System.Drawing.Size(312, 273
Me.CrystalReportViewer1.TabIndex =

'Form

Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13
Me.ClientSize = New System.Drawing.Size(312, 273
Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.CrystalReportViewer1}
Me.Name = "Form1
Me.Text = "Form1
Me.ResumeLayout(False

End Su

#End Regio

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Loa

Dim Customername As Strin
Customername = "whateverabc
Dim paramFields As New ParameterFields(
Dim discreteVal As New ParameterDiscreteValue(
Dim paramField As New ParameterField(

paramField.ParameterFieldName = "?CustomerName
discreteVal.Value = Customernam
paramField.CurrentValues.Add(discreteVal
paramFields.Add(paramField

End Su

Private Sub CrystalReportViewer1_Load_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CrystalReportViewer1.Loa

End Su
End Class
Nov 20 '05 #1
0 1260

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Lightning Tony | last post by:
This is probably a really silly question but I am exhausted and cant seem to find the answer. I have a query that I run from a command button on a form. The query has three criteria set. The first...
4
by: Stephen Poley | last post by:
I have a pair of tables (Applicaties en Releases) in a 1-to-N relation. I created and tested a report based on Applicaties. I then added a subreport based on Releases using the wizard. This...
6
by: MIG | last post by:
In Access 97 I used @ to make message boxes to separate the lines, rather than have the message all in one line. In Access 2000, all that happens is that "@" appears all over my message boxes. ...
4
by: Aniruddha | last post by:
I had posted this to comp.os.msdos but I did not get an answer. The program // Hello.cpp #include <iostream.h> #include <stdio.h> int main () { printf ("Line1 \n"); cout<< "Line2 \n" ;
4
by: Todd Perkins | last post by:
Hello all, surprisingly enough, this is my first newsgroup post, I usually rely on google. So I hope I have enough info contained. Thank you in advance for any help! Problem: I am getting...
1
by: Troy | last post by:
How do I answer the disable macro prompt automatically when opening an Excel workbook? We are using Excel 97 and 2002. In 2002 we want the Medium security (prompt user) to safeguard against e-mail...
4
by: Ranginald | last post by:
Hi, I'm having trouble passing a parameter from my default.aspx page to my default2.aspx page. I have values from a query in a list box and the goal is to pass the "catID" from default.aspx...
2
by: PotatoChip | last post by:
I am working in Access 2002 and I have been asked to create a form for a report based on a paramter query so that the user selects the department from a drop down list on the form, query runs and...
13
by: jboisa | last post by:
I have the calculated field below, which runs fine by itself. When I put a selection criteria (3) into the query, however, I get these unexplained parameter prompts. I'm running Access 2002 on...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
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,...
0
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...
0
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...

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.