views:

16

answers:

0

VS has started to reject this line

oSheet.PageSetup.Orientation = Excel.XlPageOrientation.xlLandscape;

at runtime. The reason seems to be that it is looking for a printer which is not connected. How do I make it look at the default printer?