Well, you may try to use PageSetup.BlackAndWhite Boolean attribute to render the sheet in black and white. You got to loop through each sheet in the workbook to set the property to true before rendering to PDF:
e.g Sample code:
..........
//Get the first worksheet in the workbook.
Worksheet sheet = workbook.Worksheets[0];
sheet.PageSetup.BlackAndWhite = true;
..............
Hope, this helps a bit.
1 Like
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.