Click here to Skip to main content
15,924,452 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to play wav file in C# Pin
nauty5-Apr-06 18:45
nauty5-Apr-06 18:45 
GeneralRe: how to play wav file in C# Pin
Bob_Sun5-Apr-06 20:14
Bob_Sun5-Apr-06 20:14 
GeneralRe: how to play wav file in C# Pin
Ed.Poore5-Apr-06 20:27
Ed.Poore5-Apr-06 20:27 
AnswerRe: how to play wav file in C# Pin
V.5-Apr-06 20:36
professionalV.5-Apr-06 20:36 
AnswerRe: how to play wav file in C# Pin
scoroop5-Apr-06 22:09
scoroop5-Apr-06 22:09 
AnswerThanx for the kind help Pin
nauty5-Apr-06 23:58
nauty5-Apr-06 23:58 
QuestionDataGridView Help urgent Pin
Naveed Shoaib5-Apr-06 9:43
Naveed Shoaib5-Apr-06 9:43 
QuestionCreating a Process question!!! Pin
tryston025-Apr-06 9:22
tryston025-Apr-06 9:22 
Hello,

I am trying to use our 3rd party fax software FaxPress. It requires this line of text to be called during a command line.

Our old VB 6 app is doing this but using a shell command. I was told this could be done using the Process class in C#.

Here is what I have:

    <br />
    /// <summary><br />
    /// Faxes attachments to destination<br />
    /// </summary><br />
    /// <param name="output">Output directory for FaxPress</param><br />
    /// <param name="subject">Subject Line</param><br />
    /// <param name="faxPress">Fax system to use. TACCFAX1*</param><br />
    /// <param name="account">Login account. XOC</param><br />
    /// <param name="files">Attachments /A</param><br />
    /// <param name="phone">Calling info [name @][company @] PhoneNumber</param><br />
    private void GenerateFax(string output, string subject, string faxPress, string account, string files, string phone)<br />
    {<br />
        StringBuilder executeString = new StringBuilder();<br />
        executeString.Append("SubmitFax /S " + faxPress);<br />
        executeString.Append(" /U " + account);<br />
        executeString.Append(" /R " + phone);<br />
        executeString.Append(" /O " + output);<br />
        executeString.Append(" /B " + subject + " ");<br />
        executeString.Append(files);<br />
        executeString.Append(" " + "/C NO COVER PAGE");<br />
<br />
        Process process = new Process();<br />
        process.StartInfo.Arguments = executeString.ToString();<br />
        process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;<br />
        process.Start();<br />
    }<br />

Does this look right? Is process.StartInfo.Arguments the right property? There is no batch file or .exe to be called, just this string.

Thanks for any help!

Chris


-- modified at 15:23 Wednesday 5th April, 2006
AnswerRe: Creating a Process question!!! Pin
Dan Neely5-Apr-06 9:58
Dan Neely5-Apr-06 9:58 
GeneralRe: Creating a Process question!!! Pin
tryston025-Apr-06 10:04
tryston025-Apr-06 10:04 
GeneralRe: Creating a Process question!!! Pin
Dan Neely5-Apr-06 10:07
Dan Neely5-Apr-06 10:07 
GeneralRe: Creating a Process question!!! Pin
tryston025-Apr-06 10:13
tryston025-Apr-06 10:13 
GeneralRe: Creating a Process question!!! Pin
tryston025-Apr-06 10:22
tryston025-Apr-06 10:22 
GeneralRe: Creating a Process question!!! Pin
Graham Nimbley5-Apr-06 10:25
Graham Nimbley5-Apr-06 10:25 
GeneralRe: Creating a Process question!!! Pin
tryston025-Apr-06 10:30
tryston025-Apr-06 10:30 
GeneralRe: Creating a Process question!!! Pin
Graham Nimbley5-Apr-06 10:34
Graham Nimbley5-Apr-06 10:34 
GeneralRe: Creating a Process question!!! Pin
tryston025-Apr-06 10:51
tryston025-Apr-06 10:51 
GeneralRe: Creating a Process question!!! Pin
tryston026-Apr-06 4:58
tryston026-Apr-06 4:58 
GeneralRe: Creating a Process question!!! Pin
Graham Nimbley6-Apr-06 12:11
Graham Nimbley6-Apr-06 12:11 
QuestionHow to avoid dragging a form Pin
Elvia Gonzalez5-Apr-06 9:14
Elvia Gonzalez5-Apr-06 9:14 
QuestionRecognising barcode? Pin
Vertyg05-Apr-06 8:55
Vertyg05-Apr-06 8:55 
AnswerRe: Recognising barcode? Pin
Gary Thom6-Apr-06 4:07
Gary Thom6-Apr-06 4:07 
GeneralRe: Recognising barcode? Pin
Vertyg06-Apr-06 9:52
Vertyg06-Apr-06 9:52 
Questionoverriding an @ to force control chars to be interpreted Pin
Dan Neely5-Apr-06 8:37
Dan Neely5-Apr-06 8:37 
AnswerRe: overriding an @ to force control chars to be interpreted Pin
Guffa5-Apr-06 9:21
Guffa5-Apr-06 9:21 

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.