Click here to Skip to main content
16,006,006 members
Home / Discussions / C#
   

C#

 
AnswerRe: Problem in TreeList Pin
leppie30-May-06 1:21
leppie30-May-06 1:21 
QuestionSingleton delaying specific requests while not blocking all others Pin
mihaigheza29-May-06 21:01
mihaigheza29-May-06 21:01 
AnswerRe: Singleton delaying specific requests while not blocking all others Pin
Darren_29-May-06 21:19
Darren_29-May-06 21:19 
GeneralRe: Singleton delaying specific requests while not blocking all others Pin
mihaigheza29-May-06 23:40
mihaigheza29-May-06 23:40 
QuestionRetrieve the H.D.D serial number in C# Pin
ehsan_prog29-May-06 20:33
ehsan_prog29-May-06 20:33 
AnswerRe: Retrieve the H.D.D serial number in C# [modified] Pin
albCode29-May-06 20:56
albCode29-May-06 20:56 
AnswerRe: Retrieve the H.D.D serial number in C# Pin
Darren_29-May-06 20:56
Darren_29-May-06 20:56 
QuestionCommand prompt with fop problem Pin
Support12329-May-06 20:32
Support12329-May-06 20:32 
Hi all,

i'm running this shellcontrol...

TempPath = "C:\Program Files\Progressive projects\Progress\ReportTemplates"
TempName = "ClientRecordCardHairFo-Pdf.xsl"

public void shellControl2()
{
if(CustCd != "")
{
string command = "\"" + Convert.ToString(TempPath) + "\\fop.bat" + "\" " + "-xml " + "\"" + Convert.ToString(TempPath) + "\\ClientRecordCard.xml" + "\" " + "-xsl " + "\"" + Convert.ToString(TempPath) + "\\" + Convert.ToString(TempName) + ".xsl" + "\" " + "-pdf " + "\"" + Convert.ToString(Salon.Library.GlobalVariables.Reports_Path) + "\\ClientRecordCard.Pdf" + "\"";

ProcessStartInfo startInfo = new ProcessStartInfo("cmd.exe");
// /c switch sends a command
startInfo.Arguments = Convert.ToString(command);
// redirect messages to this program
startInfo.RedirectStandardError = true;
startInfo.RedirectStandardOutput = true;
//don't execute using shellexecute API
startInfo.UseShellExecute = false;
//Don't open command prompt window
startInfo.CreateNoWindow = true;
System.Diagnostics.Process p = System.Diagnostics.Process.Start(startInfo);
string output = p.StandardOutput.ReadToEnd();
string error = p.StandardError.ReadToEnd();
p.WaitForExit();
if (output.Length != 0)
shellControl1.WriteText(output);
else if (error.Length != 0)
shellControl1.WriteText(error);
}
}
Thing is,it stops when it gets to: string output = p.StandardOtput.ReadToEnd();
It doesn't give me an error though. It's realy frustratingCry | :((

plz help...


He who laughs last...
AnswerRe: Command prompt with fop problem Pin
Darren_29-May-06 20:50
Darren_29-May-06 20:50 
GeneralRe: Command prompt with fop problem Pin
Support12329-May-06 21:32
Support12329-May-06 21:32 
GeneralRe: Command prompt with fop problem Pin
Support12329-May-06 22:08
Support12329-May-06 22:08 
GeneralRe: Command prompt with fop problem Pin
Darren_29-May-06 22:18
Darren_29-May-06 22:18 
QuestionApartment in C# Pin
ehsan_prog29-May-06 20:31
ehsan_prog29-May-06 20:31 
AnswerRe: Apartment in C# Pin
Darren_29-May-06 21:02
Darren_29-May-06 21:02 
QuestionFinding out whether a WAV file is completed recording Pin
coolestCoder29-May-06 20:09
coolestCoder29-May-06 20:09 
AnswerRe: Finding out whether a WAV file is completed recording Pin
lmoelleb29-May-06 20:25
lmoelleb29-May-06 20:25 
AnswerRe: Finding out whether a WAV file is completed recording [modified] Pin
Darren_29-May-06 20:35
Darren_29-May-06 20:35 
Questionhow can I manage some links in html page that load with webbrowser within a win app ? Pin
Nafiseh Salmani29-May-06 19:56
Nafiseh Salmani29-May-06 19:56 
AnswerRe: how can I manage some links in html page that load with webbrowser within a win app ? Pin
lmoelleb29-May-06 23:06
lmoelleb29-May-06 23:06 
QuestionRe: how can I manage some links in html page that load with webbrowser within a win app ? Pin
Nafiseh Salmani29-May-06 23:12
Nafiseh Salmani29-May-06 23:12 
AnswerRe: how can I manage some links in html page that load with webbrowser within a win app ? Pin
lmoelleb30-May-06 1:33
lmoelleb30-May-06 1:33 
QuestionRe: how can I manage some links in html page that load with webbrowser within a win app ? Pin
Nafiseh Salmani30-May-06 2:47
Nafiseh Salmani30-May-06 2:47 
AnswerRe: how can I manage some links in html page that load with webbrowser within a win app ? Pin
lmoelleb30-May-06 3:16
lmoelleb30-May-06 3:16 
QuestionUrgent Pin
Shiv529-May-06 19:35
Shiv529-May-06 19:35 
AnswerRe: Urgent Pin
Darren_29-May-06 19:48
Darren_29-May-06 19:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.