|
Shaik Haneef wrote: t is urgent for me
Well, I'm afraid you're all out of luck. A basic understanding of computers will tell you that the reason you get this error, is that you can't access a file being used by another process. Your only option really, if you MUST have access, is to find out the process that's locking it ( that would be Word, from the sound of it ), and kill it. I am sure that's not the result you're looking for.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
0) The app that's creating the file would need to allow concurrent reads.
1) But with XML, having access to only a partial document is useless.
2) Ergo, the creating app would need to write the entire file before the reading app reads it, so the creating app might as well close the file and exit before the reading app runs.
Some of what you wrote (e.g. "one predefined xsl file i need to generate one xslt") is gibberish.
|
|
|
|
|
I try to include the publish button in my project how can i code for it i do not have any idea about it how to start
|
|
|
|
|
santosh_anu wrote: I try to include the publish button in my project how can i code for it i do not have any idea about it how to start
Use the FormDesign window and toolbox. Drag a button from the toolbox onto the form and adjust the properties as required.
|
|
|
|
|
Hi all,
I have seen a solution,which deals with File download in web browser.
and the bellow code gives error
can some one help me what is the problem here...
Thread workThread = new Thread(delegate()
{
FindDownloadDialogWindow("#32770", "File Download", 120,
});
From here i tried download dialogue
thanks
|
|
|
|
|
|
I hope you don't mean this:
Thread workThread = new Thread(delegate()
{
FindDownloadDialogWindow("#32770", "File Download", 120);
});
|
|
|
|
|
Hi thanks and when i build (C#)
the following error comes, i am not familiar with delegates
can you guide me
The name 'FindDownloadDialogWindow' does not exist in the current context
do i need to declare this or what to do.
thanks...
|
|
|
|
|
jasome wrote: do i need to declare this or what to do.
Obviously.
The function is only described, not actually given, on that blog. It's not to hard to write it, but you seem more like the copy&paste kind of "programmer" to me. No offense, but matching up parenthesis and adding missing semicolons is not exactly high-level.
Good luck.
|
|
|
|
|
Your code produces syntax errors. I suggest you try the code harold posted.
If you still get an error, try calling FindDownloadDialogWindow without the thread, this will help you determine whether your call to the method is OK, then add back the delegate call.
|
|
|
|
|
Hi thanks
Even if i call FindDownloadDialogWindow outside the thread also it gives the same error.
do you have any idea of which namespace or dll consists this FindDownloadDialogWindow function.
thanks
|
|
|
|
|
|
|
Hey,
for example:
//new
Thread t= new Thread (new ThreadStart(MyFunction));
t.Start();
//
MyDelegate dele = new MyDelegate (FindDownloadDialogWindow );
dele.BeginInvoke("#32770", "File Download", 120);
void FindDownloadDialogWindow(string handle, string tileText, int num);
modified 27-May-14 5:36am.
|
|
|
|
|
I use C# and storing data in XML file. the problem is that how can i avoid xml file to save duplicate record. in table it can be detected using Primary Key but how can i do it in xml.
e.g. in xml file i saved ProductID=1, next time when i try to save ProductID=1, it should automatically alert me that Key already exists.
help please
|
|
|
|
|
Hi,
XML is just a "dumb" datastructure. Using a database you have a layer between your app and the datastore called "DBMS" (Database management system). This system checks if you try to insert a duplicate key. Using your XML structure you have to write this "DBMS" by yourself. So I suggest write a layer which will check for duplicate keys.
Regards
Sebastian
|
|
|
|
|
the solution could be xsd file, but i dont know to use it
|
|
|
|
|
Well, could be a possibilty. Look here to see how it works:
http://www.xml.com/pub/a/2000/12/13/schemas/part2.html?page=2[^]
The problem is, that you can add the same identifier to the file without any error message. The XSD will only help you to say, if the XML file is valid according to the defined schema. So you could add a possible duplicate key to the file and validate the xml afterwards with the xsd. If the validation fails you know that the insertion of the key was not correct.
|
|
|
|
|
Before adding data to XML file, run a XPath query to see the data already exist. This is not fool proof method as XML is just a text file which any one can open in any text editor and add duplicate data.
|
|
|
|
|
|
Bar chart not displayed mozilla but displayed in firefox while implemented dynamically in c#
|
|
|
|
|
mathewaugustine wrote: Bar chart not displayed mozilla but displayed in firefox
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
|
The error is on the second line of your code. You missed a semi colon. Oh, wait, you didn't give us any code. Did you want help, or not ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Dearest Developers,
i can send programmatically(C#) insecure smtp mail. but when i try to send secure mail. the above error thrown.but if i use gmail(smtp.gmail.com) i can send mail.but when i use our secure smtp mail server(mail.nibssolutions.net)it does not send.
how i fix it.
plz help me.
thanks in advance
Code:
MailAddress SendFrom = new MailAddress("test@nibssolutions.net");
MailAddress SendTo = new MailAddress("rudro_aiub@yahoo.com");
MailMessage myMessage = new MailMessage(SendFrom, SendTo);
myMessage.Subject = "Subject";
myMessage.Body = "Body";
//SmtpClient _smtpClient = new SmtpClient("mail.nibssolutions.net",25);
SmtpClient _smtpClient = new SmtpClient("mail.nibssolutions.net", 587);
_smtpClient.EnableSsl = true;
_smtpClient.Credentials = new System.Net.NetworkCredential("test@nibssolutions.net", "*********");
_smtpClient.Send(myMessage);
MessageBox.Show("Mail Sent...");
|
|
|
|