|
List Info
Thread: C-Sharp (C#) Group: Re: .PrintOut Method
|
|
| C-Sharp (C#) Group: Re: .PrintOut Method |

|
2006-11-01 16:37:13 |
|
Never mind! The piece of code I was working
on opens an existing workbook, and I wasn’;t initializing the worksheet
like in my method that creates a new worksheet. Problem Solved.
From: C_Sharp googlegroups.com [mailto:C_Sharp googlegroups.com] On Behalf Of Jeremy Schreckhise
Sent: Wednesday, November 01, 2006
10:33 AM
To: C_Sharp googlegroups.com
Subject: C-Sharp (C#) Group: Re:
.PrintOut Method
I was successful in printing my _ExcelWB
which is an excel workbook object with the PrintOut Method, but when I use the
same code for a worksheet object everything goes awry. I know I am
creating the object right because I can open, modify, etc to the sheet.
From: C_Sharp googlegroups.com [mailto:C_Sharp googlegroups.com] On Behalf Of Jeremy Schreckhise
Sent: Wednesday, November 01, 2006
9:53 AM
To: C_Sharp googlegroups.com
Subject: C-Sharp (C#) Group:
.PrintOut Method
I have tried every example on the web I have found.
Can anyone post an example of printing an excel worksheet with the .PrintOut
method.
I have tried:
_ExcelWS.PrintOut(Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing);
object _Missing =
System.Reflection.Missing.Value;
_ExcelWS.PrintOut(_Missing, _Missing, _Missing, _Missing,
_Missing, _Missing, _Missing, _Missing);
_ExcelWS.PrintOut(1, 2, 1, false, “MyPrinterR21;, false, false, false);
I also have wrapped each
instance with try/catches, and the only exception I have received is
“object reference not set” so I tried ref _Missing,
etc… In most cases nothing was thrown, but nothing printed.
Any help on this issue would be more than appriciated.
Jeremy Schreckhise
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "C-Sharp (C#)" group. To post to this group, send email to C_Sharp googlegroups.com To unsubscribe from this group, send email to C_Sharp-unsubscribe googlegroups.com For more options, visit this group at http://groups-beta.google.com/group/C_Sharp -~----------~----~----~----~------~----~------~--~---
|
[1]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|