|
|
|
|
Another way is:
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 a web service and i send parameters date the it's give me exception string is not in good format my code is in v.b. and web service language is c#
|
|
|
|
|
At a guess, it's a string - or you wouldn't be converting it. Which implies the service computer and the application computer are using different locales, or cultures.
Don't - pass it as a date value: always keep values in the most sensible datatype, rather than strings...
You looking for sympathy?
You'll find it in the dictionary, between sympathomimetic and sympatric
(Page 1788, if it helps)
|
|
|
|
|
Djay Hole wrote: web service language is c#
No web service is web service. It might be implemented in C# but that doesn't change anything.
Djay Hole wrote: exception string is not in good format my code
The web service expects a web service call with the data in the format that it expects. And you are not sending it that way. Figure out the correct format and send it that way.
|
|
|
|
|
Look into the DateTime ToString[^] method and the DateTime TryParseExact[^] methods.
Although you could just pass the Date or DateTime objects as is? Chances are it is compatible. But for the record, I'm assuming you're talking VB.Net?
|
|
|
|
|
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();
PictureBox Disappears But File Delete Successfully.
try
{
if (File.Exists(oldfilename))
{
File.Delete(oldfilename);
profilePicPictureBox.Load(picPath);
}
else
{
MessageBox.Show("File Not Found");
}
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
"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
RAH
|
|
|
|
|
This is an long known problem - see this[^] SO answer.
/ravi
|
|
|
|
|
Hi friends,
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.
|
|
|
|
|
|
The error message is pretty clear: every TextBox control must be within a <form runat="server">...</form> tag. You cannot have a TextBox outside of the form tag.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
A text box is supposed to be in the form tag itself. Why do you want it to be in outside of the form tag .
So much complexity in software comes from trying to make one thing do two things.
Sibeesh
|
|
|
|
|
I am looking for a treeview control (C#) in which it accepts a Newick string as input and draw it but I did not find any thing.
Could anybody help me?
|
|
|
|
|
Abolfazl Ghavidel wrote: but I did not find any thing. We don't write new tree-controls for each format out there. You would have to write an adapter that transforms your data to what a normal treeview expects.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I want to create a photo gallery in C#(Windows Application). Please help me to create this application.
Thanks
prabhat Kumar Mishra
|
|
|
|
|
|
Simple, i would create a new image ... (am not sure if the syntax is grammatically correct since i'm not using an ide but the concept is really easy)
something like this:
PictureBox _Add = new PictureBox();....
then load an image from url into the _Add
byte[] imageData = DownloadData(Url);
MemoryStream stream = new MemoryStream(imageData);
Image img = Image.FromStream(stream);
stream.Close();
_Add.Image = img;
FlowPanel.Contorls.Add(_Add);
|
|
|
|
|
Less than 10 seconds of Googling revealed this[^] open source project.
/ravi
|
|
|
|
|
Hello,
I wants to create a system for colleges and universities to view their entire campus online(CCTV), so i have decided to create asp.net website to view all the connected DVRs(Digital Video Recorder). i need more than one DVR to be connected to the Website, and then that can be accessible by selecting its ID or Name. i am able to access single DVR in the web browser through internet but i want it to be accessible in my ASP.net website and i want some option like selecting DVR to view among connected DVRs.
Please tell me where to start i am new to this and i am very excited to make this system as my final year project. please give me your Experienced Solutions.
Thanks..
Thanks
|
|
|
|
|
Please be more specific with what you need help with. "How do I do it" is way too vague to be answered in a couple of forum posts.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Hi everybody,
Since few days, I try to read certificates on my Smart card by using Compact Framework 3.5 on Windows Mobile 6. I've already succedded to do this on a desktop application by using the following code :
X509Store test = new X509Store(StoreName.Root, StoreLocation.LocalMachine);
test.Open(OpenFlags.ReadOnly);
if (test.Certificates.Count > 0)
{
foreach (X509Certificate2 cert in test.Certificates)
{
MessageBox.Show("Certificate: " + cert.ToString());
}
}
Unfortunately, this code doesn't work on my mobile application: it me indicates that there are no certificate while my smart card contains two certificates!
What happens? Have you got an idea? Have you already encounter the same issue?
Thank you by advance for your help!
Best regards
|
|
|
|
|
Hi,
Finally to get certicates and public keys stored on my Smart Card, I have used directly the APDU's commands and It works fine! Commands are launched by using Winscard.dd.
Best regards
|
|
|
|