私は、pdfファイル、標準印刷、その他のpdfファイル、その他の標準印刷などを印刷する必要があります。 しかし、私はプリンタに送られたシートは混在しています。同期PDF印刷と標準印刷
私が望む:
PDF
PrintPage
PDF
PrintPage
PDF
PrintPage
しかし、私は、(例えば)得た:
PDF
PDF
PrintPage
PrintPage
PrintPage
PDF
私は仕事をachiveするには、次のコードを使用しています:
while(...) {
ProcessStartInfo starter = new ProcessStartInfo("path to acrobt32.exe", "/t mypdf001.pdf");
starter.CreateNoWindow = true;
starter.RedirectStandardOutput = true;
starter.UseShellExecute = false;
Process process = new Process();
process.StartInfo = starter;
process.Start();
PrintDocument pd = new PrintDocument();
pd.DocumentName = "Work";
pd.PrintPage += new PrintPageEventHandler(pd_PrintPageHandler);
pd.Print();
}
どれでも助けが歓迎されるでしょう。ありがとう。
アクロバットリーダーが開いていることがあるため、動作しませんでした。 – Gabriel
acrobatが閉じるのを待つ最大ms秒数を指定することができます。例えば、WaitForExit(5000)は最大5秒間待機します。 –