Click here to Skip to main content
15,887,341 members
Home / Discussions / C#
   

C#

 
QuestionMultiple row select in a datagrid? Pin
MCSD-Gandalf30-May-06 3:09
MCSD-Gandalf30-May-06 3:09 
QuestionAddIn not responding for VS.Net 2003 Pin
Ruhina30-May-06 2:54
Ruhina30-May-06 2:54 
Questionan sql query error ? help please ... Pin
cmpeng3430-May-06 2:32
cmpeng3430-May-06 2:32 
AnswerRe: an sql query error ? help please ... Pin
NaNg1524130-May-06 2:40
NaNg1524130-May-06 2:40 
AnswerRe: an sql query error ? help please ... Pin
Guffa30-May-06 4:20
Guffa30-May-06 4:20 
AnswerRe: an sql query error ? help please ... Pin
Stefan Troschuetz30-May-06 2:48
Stefan Troschuetz30-May-06 2:48 
AnswerRe: an sql query error ? help please ... Pin
albCode30-May-06 2:58
albCode30-May-06 2:58 
Questioncommand prompt with fop problem Pin
Support12330-May-06 2:30
Support12330-May-06 2:30 
Hi all,

Sorry Code project. I'm posting yet another question. I just cant get past this problem...

I'm trying to get this command executed in cmd through C#.

The command needs to be in Quotation marks like this when it gets sent to cmd...

"c:\Program files\progressive projects\progress\reporttemplates\fop.bat" -xml "c:\program files\progressive projects\progress\reporttemplates\ClientRecordCard.xml" -xsl "c:\Program files\progressive projects\progress\reporttemplates\ClientRecordCardHairFo-pdf.xsl" -pdf "c:\Reports\ClientRecordCard.pdf"

my code looks like this


The TempPath And TempName

TempPath = c:\program files\progressive projects\progress\reporttemplates
TempName = ClientRecordCardHairFo-Pdf

startInfo.Arguments = "/C " + "\"" + @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" + "\"";

my logic tells me that it should work but i get an error saying "'c:\Program' not recognized as an internal or external command, operable program or batch file.

He who laughs last...
QuestionRe: command prompt with fop problem Pin
Support12330-May-06 2:31
Support12330-May-06 2:31 
AnswerRe: command prompt with fop problem Pin
NaNg1524130-May-06 2:37
NaNg1524130-May-06 2:37 
AnswerRe: command prompt with fop problem Pin
NaNg1524130-May-06 2:36
NaNg1524130-May-06 2:36 
GeneralRe: command prompt with fop problem Pin
Support12330-May-06 2:40
Support12330-May-06 2:40 
GeneralRe: command prompt with fop problem Pin
NaNg1524130-May-06 2:41
NaNg1524130-May-06 2:41 
GeneralRe: command prompt with fop problem [modified] Pin
Support12330-May-06 2:53
Support12330-May-06 2:53 
GeneralRe: command prompt with fop problem Pin
NaNg1524130-May-06 2:59
NaNg1524130-May-06 2:59 
GeneralRe: command prompt with fop problem Pin
Support12330-May-06 3:13
Support12330-May-06 3:13 
GeneralRe: command prompt with fop problem [modified] Pin
NaNg1524130-May-06 3:12
NaNg1524130-May-06 3:12 
GeneralRe: command prompt with fop problem [modified] Pin
Support12330-May-06 3:15
Support12330-May-06 3:15 
GeneralRe: command prompt with fop problem [modified] Pin
NaNg1524130-May-06 3:23
NaNg1524130-May-06 3:23 
GeneralRe: command prompt with fop problem [modified] Pin
Support12330-May-06 3:33
Support12330-May-06 3:33 
GeneralRe: command prompt with fop problem [modified] Pin
NaNg1524130-May-06 3:34
NaNg1524130-May-06 3:34 
GeneralRe: command prompt with fop problem [modified] Pin
Support12330-May-06 3:43
Support12330-May-06 3:43 
GeneralRe: command prompt with fop problem [modified] Pin
Support12330-May-06 4:01
Support12330-May-06 4:01 
AnswerRe: command prompt with fop problem Pin
Dan Neely30-May-06 3:56
Dan Neely30-May-06 3:56 
GeneralRe: command prompt with fop problem Pin
Support12330-May-06 4:03
Support12330-May-06 4:03 

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.