none
Compiler Error Message: CS1010: Newline in constant

    Question

  • ProcessStartInfo info = new ProcessStartInfo(file, " -rpt=Quote,{QuoteHeader.QuoteID}=" + QuoteID + ",,"C:/inetpub/vhosts/###########/httpdocs/QuoteSystem1/Quote-" + QuoteID + ".pdf");
    Line 487:            Process p = Process.Start(info);

    I keep getting this error, but in vs studio all runs well:

    Compiler Error Message: CS1010: Newline in constant


    Monday, July 02, 2012 7:31 AM

Answers

  • Hi,

    It looks like that the quotes are messed a little bit. Maybe this way it will work:

    ProcessStartInfo info = new ProcessStartInfo(file, " -rpt=Quote,{QuoteHeader.QuoteID}=" + QuoteID + ",,C:/inetpub/vhosts/FreightFocus.net/httpdocs/QuoteSystem1/Quote-" + QuoteID + ".pdf");

    • Marked as answer by C-Sharp Mamba Monday, July 02, 2012 7:46 AM
    Monday, July 02, 2012 7:38 AM

All replies

  • a + is missing there. Just change the line as below,

    ProcessStartInfo info = new ProcessStartInfo(file, " -rpt=Quote,{QuoteHeader.QuoteID}=" + QuoteID + ",," + "C:/inetpub/vhosts/FreightFocus.net/httpdocs/QuoteSystem1/Quote-" + QuoteID + ".pdf");

    I hope this helps.

    Please mark this post as answer if it solved your problem. Happy Programming!

    Monday, July 02, 2012 7:36 AM
  • Hi,

    It looks like that the quotes are messed a little bit. Maybe this way it will work:

    ProcessStartInfo info = new ProcessStartInfo(file, " -rpt=Quote,{QuoteHeader.QuoteID}=" + QuoteID + ",,C:/inetpub/vhosts/FreightFocus.net/httpdocs/QuoteSystem1/Quote-" + QuoteID + ".pdf");

    • Marked as answer by C-Sharp Mamba Monday, July 02, 2012 7:46 AM
    Monday, July 02, 2012 7:38 AM