I have a code where I print a document. There is a picure section in the sample document that changes fields by the user.
When I execute the code, I get the following message:
The margins of section 1 are set outside the printable area. A.
After processing the document, buffering starts and this miss is thrown
How to disable the notification dialog?
my code is:
Process printJob = new Process(); printJob.StartInfo.Verb = "PrintTo"; printJob.StartInfo.Arguments = printerName; printJob.StartInfo.ErrorDialog = false; printJob.StartInfo.CreateNoWindow = true; printJob.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; printJob.StartInfo.FileName = path; printJob.StartInfo.UseShellExecute = true; printJob.StartInfo.Verb = "print"; printJob.Start();
Where is the variable path> is the path to the file name
source share