Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
var myProcessStartInfo = new ProcessStartInfo
{
    UseShellExecute = true,
    FileName = fname,
    Verb = "Print",
    CreateNoWindow = true,
    Arguments = DefaultPrinterName(), 
    WindowStyle = ProcessWindowStyle.Hidden
};


What I have tried:

I couldn't find proper syntax

var myProcessStartInfo = new ProcessStartInfo
{
    UseShellExecute = true,
    FileName = fname,
    Verb = "Print",
    CreateNoWindow = true,
    Arguments = DefaultPrinterName(), 
    WindowStyle = ProcessWindowStyle.Hidden
};
Posted
Updated 27-Aug-20 22:03pm
v2
Comments
Sandeep Mewara 28-Aug-20 4:07am    
You are able to print pdf but want page range in it now but not sure how to do it - is that the query?
Sandeep Mewara 28-Aug-20 4:07am    
You are able to print pdf but want page range in it now but not sure how to do it - is that the query?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900