Hi, I am opening the UDL file from Browse button in WPF application. After clicking on OK button of UDL wizard connection information should be displayed in WPF application's Datagrid. Please give me any way to do this.
Message=Object reference not set to an instance of an object.
at final.DailySheet.UpdateLabelText() in h:\final\final\final\DailySheet.cs:line 122
//my code start
Label la= new Label;
int i = 0;
for (counter1 = 0; counter1 < (dgdaily.Rows.Count-1); counter1++)
int sum = 0;
if (dgdaily.Rows[counter1].Cells["destination"].Value != null)
string x = dgdaily.Rows[counter1].Cells["destination"].Value.ToString();
int descount = 1;
for (counter2 = 1; counter2 < (dgdaily.Rows.Count-1); counter2++)
string y = dgdaily.Rows[counter2].Cells["destination"].Value.ToString();
1. Create RDLC or Report File for as per your print document requirement.
2. Assign DataSet to you report file.
3. Create PDF file in specified location.
4. Using Browser control you can show it in pdf viewer in you apps.
5. And Generate print from pdf viewer.
I have picturebox and i trying write code when the users loads another image on picturebox the old file which was in picture to be deleted. I trying to find solution for for 24 hrs still i didn't able find fully working solution.
I came up with 1 partial solution and following is partial code
profilePictureBox.Dispose(); // When I use This After The Function Executed
PictureBox Disappears But File Delete Successfully.
MessageBox.Show("File Not Found");
catch (Exception ex)
"old filename" will contain previous filename to delete and "picPath" will contains new path of image user chosen.
and also when tried method like
profilePictureBox.Image = null;
i am getting below error
System.IO.IOExecption:The Process cannot access the file
'filepath' because it is being used by another process.
Your picture box is referencing the file on the hard disk, you need to set the content of the picturebox to null BEFORE attempting to delete the file. OR load the new file into the picturebox (releasing the old file) and then delete the old file.
Never underestimate the power of human stupidity
I am facing a problem in asp.net that i want to add a text box (it is a part of header of the page) in the head part of the master page without defining it into the form tag but when i run this on web page then it show the following error:
Exception Details: System.Web.HttpException: Control 'TextBox1' of type 'TextBox' must be placed inside a form tag with runat=server.
so how should i do.
Last Visit: 31-Dec-99 19:00 Last Update: 28-Nov-22 11:22