Announcement

Collapse
No announcement yet.

Command line arguments

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bug Command line arguments

    Hi,

    I'm using foxit reader from a c# application to print pdf files.

    Is there a way of telling the process to print duplex?

    Code snippet:

    var pd = new PrintDialog();
    pd.ShowDialog();

    var printFileDir = _regionSharedDocLoc;

    foreach (ListViewItem item in lvFileList.SelectedItems)
    {
    Process pdfProcess = new Process();
    pdfProcess.StartInfo.FileName = Environment.GetEnvironmentVariable("PROGRAMFILES") + @"\Foxit Software\Foxit Reader\Foxit Reader.exe";
    pdfProcess.StartInfo.Arguments = string.Format("-t \"{0}\" \"{1}\"", printFileDir + item.Text, pd.PrinterSettings.PrinterName);
    pdfProcess.Start();
    }

    I have tried setting the print settings in the print dialog, but then realised that I don't pass any of the options to the command. Is it even possible?

    There is a work around in setting the printer to print duplex as default but this is a last resort.

    Cheers

    HartleysCodeNerdJam

  • #2
    I am sorry there is not any way to do duplex printing via commandline directly without setting in your printer properties.So we have submitted your request about duplex printing via commandline to our PM team for their reference.

    Comment

    Working...
    X