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
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
Comment