Excel error with pagesetup - automation with C#

P

Prisy

I'm creating an excel workbook using c#. At this line of code I get an error:

excelWorksheet.PageSetup.pLeftHeader = "Name \n" + "Record# \n" + "ID# \n" +
"Date \n" + "Range \n";

The error I get is:

"No printers are installed. To install a printer, point to Settings on the
Windows Start menu, click Printers, and then double-click Add Printer. Follow
the instructions in the wizard."

I've checked to see whether I have a printer installed and I do. Can someone
please help me.

Thanks
Prisy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top