I have multiple sheets in workbook and selected few using
String[] sheetsToBeSelected = { "month", "day" };
((Sheets)ws.get_Item(sheetsToBeSelected)).Select();
Worksheet sheet = excelApp.ActiveSheet;
sheet.ExportAsFixedFormat(XlFixedFormatType.xlTypePDF, pdfFileName, XlFixedFormatQuality.xlQualityStandard, false, false, Missing.Value, Missing.Value, !isPrintingSilent, Missing.Value);
Now I want to print only selectedsheets into PDF not the complete workbook using ExportAsFixedFormat. How I can do that?
I have found the solution and workaround is updated in the code above. Hope it will help others.