|
Report Win32Exception:"System not find appointed file"
|
|
|
|
|
Is the exe file present at the path??
Do rate the reply, if it helps or even if it doesnot, because it helps the members to know, what solved the issue. Thanks.
|
|
|
|
|
"Process.Start(@"D:\Program Files\Tencent\QQ\BugReport.exe message1,message2);"
and
"Process.Start(@"D:\Program Files\Tencent\QQ\BugReport message1,message2);"
is same Exception.
the path is right.
|
|
|
|
|
do you have the code of BugReport?
Do rate the reply, if it helps or even if it doesnot, because it helps the members to know, what solved the issue. Thanks.
|
|
|
|
|
yes.
method1:
string msg = "message";
Process.Start(@"E:\Projects\BugReport\BugReport\bin\Debug\BugReport.exe", msg);
method2:
Process.Start(@"E:\Projects\BugReport\BugReport\bin\Debug\BugReport.exe", "message");
method3:
StringBuilder sb = new StirngBuilder();
foreach(string msg in messages)
{
sb.AppendLine(msg);
}
Process.Start(@"E:\Projects\BugReport\BugReport\bin\Debug\BugReport.exe", sb.toString());
method1 and method2 are right,but mehtod3 is failed.
why?
|
|
|
|
|
I suppose, you do have the code for that!
in BugReport's main function, remove the string[] parameter:
use this to get the parameters, and args will get aal the stuff you send to it:
string[] args = Environment.GetCommandLineArgs();
after that, do whatever you want to do with it!!
PS: you will definitly like to add some exception handling, you can do that in static main() function(usually in program.cs file), for better manageability.
Hope hat helps!
Regards,
Adeel
Do rate the reply, if it helps or even if it doesnot, because it helps the members to know, what solved the issue. Thanks.
|
|
|
|
|
|
Hi all,
i am trying to generate an ExcelSheet in Asp.net (using C#).
I have declared the excel oblect on server.
My Problem is that the code written do well when i execute web page on file system.
But when on HTTP it does't generate the excel sheet.
Though i have noticed that the TaskManager show there is a process running for Excel every time i run the page but the Excel sheet is never generated.
I have alredy custmized the Launch And Activation Properties of Excel by using Dcom Config using component services.
Any Help will be appreciated
|
|
|
|
|
Provide some code, it is anyone's guess how you are working with the excel object...
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
has anyone done this before? i have a mdi c# app and each child form has 3 tabs. i would like to embed an ms word doc in one of the tabs. itmfg (i've tried my friend google) but didn't find much. anyone can point me to good resource? tia.
I am a SysAdmin, I battle my own daemons.
|
|
|
|
|
Hello!
I think "tia" is "Thanks In Advance"!
And secondly, you need to know the version of the Word, because it works differently for Word 2003 & Word 2007 (same goes for MS Office 2003 & MS Office 2007).
Lastly, when you know what version you desire, tufg (try your friend google ) with "Office document viewer .net", you will find something to work on!
Regards,
Adeel
Do rate the reply, if it helps or even if it doesnot, because it helps the members to know, what solved the issue. Thanks.
|
|
|
|
|
Finaly, I search a little bit more because i got an error but it was :
System.Diagnostics.Process.Start(@"c:\program files\microsoft office\office11\excel.exe");
Thanks you a lot and its was a pleasure to talk with you!!
Bye, good evening!
Pascal Gosselin
|
|
|
|
|
Good to hear you got it working.
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
Next time please don't make new thread, but reply in old one. That way forum is better organized, and as a bonus person who helped you might recieve email notification, while if you make new thread they will never recieve it.
[ My Blog] "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
dnh wrote: if you make new thread they will never recieve it
Good point.
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Hi Pascal,
You're welcome!
Regards
"You don't scare me Selene."-Tanis
"We'll have to work on that."-Selene
(Underworld Evolution)
|
|
|
|
|
Does anyone know how to declare Manifest Files in the Visual Studio IDE for C#?
I followed the steps outlined here for including a manifest file:
http://support.microsoft.com/kb/944276
The executable runs from the command line after I include the manifest file. But when I open up the debugger and try to run the program through the IDE, it has the same problem as if it does not recognize the manifest file linked to it.
The way I link the manifest file to the executable is by first building the executable and then I close the project. Then I open the executable as a separate file and then I attach the manifest file as a resource to the executable.
The executable can run then, by running it from an explorer window (command line) but if I open the project again, it will not work.
I will see if I can find how this is supposed to work.
|
|
|
|
|
Thank you for your help! I try what you suggest me and its correct!! Thank you again! I try now for opening a file but it give me an error with this : File.OpenFile "C:Program Files\Microsoft Office\OFFICE11\Excel.exe";
I don't understand why??? Don't be worried, its the last thing that i will you ask!!!
Thank you, you're cool!!
Pascal Gosselin
|
|
|
|
|
Try using a filestream, and pass it the path to the file you want to open, as well as the filemode:
FileStream FS = new FileStream(@"c:\program files\microsoft office\office11\excel.exe", FileMode.Open);
Then you can read the bytes in the file.
If you where though perhaps looking for how to execute this file, then you need:
Process.Start(@"c:\program files\microsoft office\office11\excel.exe");
Process.Start will 'run' any file. If you pass it a .txt file it will open it in the associated application (probably Notepad). And if you pass it a web address it will open the page in your default browser.
My current favourite word is: Nipple!
-SK Genius
|
|
|
|
|
pascalx wrote: Thank you again! I try now for opening a file but it give me an error with this : File.OpenFile
I am assuming you mean File.Open() , there is no File.OpenFile. And that will open the file for read, not start the program. You are looking for Process.Start() . Take a look around codeproject, there are tons of examples here on it!
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
I need to display a running total as a user enters percent numbers.
The first on is in a gridview like this
CheckBox Item 1 [ percent]
CheckBox Item 2 [ percent]
.
.
CheckBox Item 12 [ percent]
Footer Show total percent as users enters [ Total Percent]
The next percents in a nested repeater that is dependant on the checkboxex from the gridview, I would like to get past the gridview first.
thanks for any help
|
|
|
|
|
You should be a little more clear. Im not sure about everyone else, but that doesn't make much sense to me.
allenpotter wrote: The next percents in a nested repeater that is dependant on the checkboxex from the gridview, I would like to get past the gridview first.
What does that mean? Be more clear on what you need help with, I'd love to help you out, I just don't understand what you are trying to do.
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
I have nested repeaters that display the items checked from the gridview and expand them further--as I stated, I just want to get past the gridview--adding the percent and displaying it as a user put them in.
|
|
|
|
|
Hello I don't speak english very well but i would like to open a web page from Visual Studio 2005 with C# language. Is it possible to do this with a method because i find nothing about it.
Thank a lot!
Pascal Gosselin
|
|
|
|
|
Hi Pascal,
Maybe try this:
System.Diagnostics.Process.Start("http://www.website.com");
Regards
Steve
Web design and hosting
http://www.kayess.com.au
|
|
|
|