|
|
I am having trouble finding what you are referring to. I am searching for "rich text box arbitrary link" but it does not yield any appropriate results, nor does "richtextbox arbitrary link." Can you please elaborate or provide a link?
Edit: I found the page you are referring to. It's http://www.codeproject.com/cs/miscctrl/RichTextBoxLinks.asp
Thanks,
Josh
-- modified at 23:32 Sunday 16th July, 2006
|
|
|
|
|
|
|
I am making a report in which i have to show that how many purchase orders were issued to which supplier.So i am taking input from the user, the id of the supplier.That id belongs to a certain supplier.i am having problems with the parameters, how do i send the Supplier_Id to the crystal report so that i can view the data.This code given is working fine i am using command in which i am giving hard coded values like where Supplier_Id=2 with the query But what my problem is, that how can i get the value from Combo box into the command object.The report is being displayed with this code but it's hard coded like where Supplier_id=2.Now tell me what should i do in order to take values dynamically into the command object.Pls give me a detailed description and if i am using the wrong technique guide me,which technique should i use as i am new to C.R.Thanks.
try
{
int Supplier_Id = Convert.ToInt32(Supp_Id_C.Text);
string sp="sp_P_S_Rpt";
SqlConnection conn = Class_Connection.Make_Conn();
SqlCommand command = new SqlCommand(sp, conn);
command.CommandType = CommandType.StoredProcedure;
command.Parameters.Add("@Supplier_Id", SqlDbType.Int).Value = Supplier_Id;
SqlDataAdapter adapter = new SqlDataAdapter(command);
DataSet ds = new DataSet();
ds.Clear();
adapter.Fill(ds, "P_S_Rpt");
dataGrid1.DataSource = ds;
//dataGrid1.DataMember = "P_S_Rpt";
CrystalDecisions.CrystalReports.Engine.ReportDocument rptDoc = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
//rptDoc.FilePath = "MyTaskReport1.rpt";
//rptDoc.SetDatabaseLogon("sa","sa","CDMA","Final_Project1_e");
rptDoc.Load("CrystalReport1.rpt");
rptDoc.SetDatabaseLogon("sa","sa","CDMA","Final_Project1_e");
rptDoc.SetDataSource(ds);
//frmReport objfrmReport = new frmReport();
// objfrmReport.crViewer1.ReportSource = rptDoc;
// objfrmReport.crViewer1.RefreshReport();
// objfrmReport.Show();
//rptDoc.Refresh();
crystalReportViewer1.ReportSource = rptDoc;
crystalReportViewer1.RefreshReport();
//crystalReportViewer1.Refresh();
//crystalReportViewer1.Show();
}
catch(Exception ee)
{
MessageBox.Show(ee.Message);
}
Fahad
|
|
|
|
|
Hi, I hope you ca use this.
// Create parameter objects
ParameterFields myParams = new ParameterFields();
// Tilføj InternalNumber
myParams.Add(MakeParam("@Customer_Id", ReportBackup_Ids));
myParams.Add(MakeParam("@CustomerName", ""));
myParams.Add(MakeParam("@CustomerAddr1", ""));
myParams.Add(MakeParam("@CustomerAddr2", ""));
myParams.Add(MakeParam("@CustomerAddr3", ""));
myParams.Add(MakeParam("@CustomerZip", ""));
myParams.Add(MakeParam("@CustomerCity", ""));
myParams.Add(MakeParam("@CustomerCountry", ""));
myParams.Add(MakeParam("@CustomerPhone", ""));
// Assign the params collection to the report viewer
crystalReportViewer1.ParameterFieldInfo = myParams;
Karsten Lundsgaard
|
|
|
|
|
hi
can you tell me ho can i get the total of returned rows of OleDbDataReader?
thanx
|
|
|
|
|
|
or OleDbDataReader.RecordsAffected
|
|
|
|
|
I`m made a simple Windows Control Library. I added some properties to be used at design time. Its ok - designing user may use them by entering eg. a string.
But suppose I would like to create a property responsible for selecting polygon. I want a special form to be opened then, which contains list of all possible polygons, allowing the user to select the desired one. How to make that?
thanks for any help
|
|
|
|
|
|
Hi
I have a user control which has a number of custom properties. Unfortunately these properties are not suitable for the designer to execute. As a result form’s which use this user control won’t open at design time in the designer.
Is there some way to prevent the designer from executing my user control properties?
Cheers
Rich
|
|
|
|
|
You can check the control's DesignMode property to conditionally vary its behavior in order for it to be created by the designer. Alternatively, you could create the control at run time.
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
Apply the [Browsable(false)] attribute to the properties which should not appear in the Properties window at design time.
:josh:
My WPF Blog[^]
|
|
|
|
|
Thanks Ravi + Josh, both solutions appear to work well
|
|
|
|
|
Hi guys,
I have a file that I am parsing and getting the data using Regex and storing the data in string dictionary.
Here is the statement where I assign data to stringcollection scoldata.
String [] arrTemp =null;
scoldata.Add(arrTemp[arrTemp.GetLowerBound(0)]);
My question is, when I assign data to scoldata, it's adding 5 characters, eg FBBBB, how do I get rid of the first character 'F' from this stringcollection?
Please help.
sasa
|
|
|
|
|
|
Thank you Ravi, I decided to go with String.Substring and it works now. Appreciate your help.
sasa
|
|
|
|
|
Hi!
Does anyone have an idea how it's possible to compact and repair an MS Access database using C#?
The option is avaiable in MS Access main menu but I don't want to do it manually.
Thanks in advance.
|
|
|
|
|
Try the COM object Access.Application.
You should be able to do it this way.
Eran Aharonovich (eran.aharonovich@gmail.com )
Noviway
|
|
|
|
|
How do I terminate all the threads my program has started when it closes? I've tryed this code:
private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e)<br />
{<br />
if (serverThread != null)<br />
serverThread.Abort();<br />
if (clientThread != null)<br />
clientThread.Abort();<br />
if (receiveRoutineThread != null)<br />
receiveRoutineThread.Abort();<br />
}
However, the form closes and a process with my application's name remains running. Can anyone suggest me other way of doing this?
|
|
|
|
|
Just set the IsBackground[^] property on each thread you create to true and you should be done. When the GUI thread shuts down, .NET forces those threads to abort.
Regards
Senthil
_____________________________
My Blog | My Articles | My Flickr | WinMacro
|
|
|
|
|
Thread.Abort() actually aborts the thread when that operation can be performed.
For example, if the thread calls a time-consuming method, the thread won't be aborted until that method returns.
_____________________________________________
Tozzi is right: Gaia is getting rid of us.
My Blog [ITA] - Developing ScrewTurn Wiki 1.0 Beta3
|
|
|
|
|
Hi All ,
I have some struct and hashtable.
In the hashTable i add objects of this struct.
How can i update the objects of the struct in the hashTable?
Example :
Public struct Struct_1
{
public int a;
public int b;
}
.
.
.
HashTable T;
Struct_1 R
T.add(R.a, R);
Question.... How can i update now the field a or b whan the object is in T ???
Thanks for any help.
|
|
|
|
|
You can do
int originalA = R.a;
Struct_1 newR = T[R.a];
newR.a = 42;
newR.b = 42;
T[originalA] = newR;
However, note that the above code changes the value for the previous key and because the key itself is part of the value, it can be confusing if you depend on key == ((R)T[key]).a .
Regards
Senthil
_____________________________
My Blog | My Articles | My Flickr | WinMacro
|
|
|
|