Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Problem with PrintOut Method

Hi All,
I am trying to set print setting for excel file programatically and
used the PrintOut Method to give the print.

The problem is,for HP Laser Jet,its working fine but for Xerox Phaser
,its just hanging at the printOut Method.Is there any problem with printer
compatibility issues ?.

Or is there any way to do this differently. Kindly see below my
requirement.

I have to print an image file (.bmp,.gif,.jpeg) in LandScape Orientation
from an asp.net application. To set the page orientation,I have embedded the
image in excel sheet and set the page orientation property to landscape. I
used the PrintOut Method. but its not working.

ANy help in this regard is greatly appreciated.

Thanks
Shyam
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Problem with PrintOut Method

I guess it is something to do with the code you are using, but you did not
post anything.

Seems strange way to print an graphic though. There must a better way from
ASP.Net.

NickHK

"Prasad" wrote in message
...
Hi All,
I am trying to set print setting for excel file programatically

and
used the PrintOut Method to give the print.

The problem is,for HP Laser Jet,its working fine but for Xerox

Phaser
,its just hanging at the printOut Method.Is there any problem with printer
compatibility issues ?.

Or is there any way to do this differently. Kindly see below my
requirement.

I have to print an image file (.bmp,.gif,.jpeg) in LandScape Orientation
from an asp.net application. To set the page orientation,I have embedded

the
image in excel sheet and set the page orientation property to landscape. I
used the PrintOut Method. but its not working.

ANy help in this regard is greatly appreciated.

Thanks
Shyam



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Problem with PrintOut Method

Hi Nick,
Even without image also,its not working. Please find below the code


oXL= new Excel.Application
oWB=(Excel._Workbook)(oXL.Workbooks.Add(Missing.Va lue));
workSheet=(Excel._Worksheet)oWB.ActiveSheet;
((Range)Worksheet.Cells[2,1]).Value2="Test";


worksheet.PrintOut(Missing.Value,Missing.Value,Mis sing.Value,Missing.Value,Missing.Value,Missing.Val ue,1,Missing.Value);

oXL.Quit();
oWB=null;
oXL=null;
Page.Visible=false;

The above code is working fine for HP Printer but not for Xerox Phaser 5500 DS
Kindly help

Thanks,
Prasad

"NickHK" wrote:

I guess it is something to do with the code you are using, but you did not
post anything.

Seems strange way to print an graphic though. There must a better way from
ASP.Net.

NickHK

"Prasad" wrote in message
...
Hi All,
I am trying to set print setting for excel file programatically

and
used the PrintOut Method to give the print.

The problem is,for HP Laser Jet,its working fine but for Xerox

Phaser
,its just hanging at the printOut Method.Is there any problem with printer
compatibility issues ?.

Or is there any way to do this differently. Kindly see below my
requirement.

I have to print an image file (.bmp,.gif,.jpeg) in LandScape Orientation
from an asp.net application. To set the page orientation,I have embedded

the
image in excel sheet and set the page orientation property to landscape. I
used the PrintOut Method. but its not working.

ANy help in this regard is greatly appreciated.

Thanks
Shyam




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Printout Method No Name Excel Programming 0 March 3rd 05 04:33 PM
PrintOut Method, Set ActivePrinter with a variable Neuraxis Excel Programming 3 March 1st 05 11:15 AM
Printout method: in color, duplex [email protected] Excel Programming 3 January 4th 05 08:55 PM
Problem with the PrToFileName parameter when using the Printout method on a worksheet Prasad Vanka Excel Programming 6 May 14th 04 10:56 AM
Excel vba printout method Curtis[_4_] Excel Programming 11 October 28th 03 01:15 PM


All times are GMT +1. The time now is 02:34 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"