HighTechTalks DotNet Forums  

set_printquality bug in Excel.PageSetup

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss set_printquality bug in Excel.PageSetup in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
robiman
 
Posts: n/a

Default set_printquality bug in Excel.PageSetup - 12-14-2007 , 07:13 AM






I think I discovered a bug in set_printquality method in
Excel.PageSetup. Example:
....
Excel.Sheets xlsheets = wb.Sheets;
Excel.Worksheet excelWorksheet = (Excel.Worksheet)xlsheets[1];
Excel.PageSetup ps = excelWorksheet.PageSetup;
object x = ps.get_PrintQuality(1);

---> debug shows: x = 600.0 (the value from PrintQuality field in
Excel's "Page Setup" form)
---> debug shows: ps.CenterFooter = ""

x = 300.0;
ps.set_PrintQuality(x, Missing.Value);

---> debug shows: ps.CenterFooter = "300"

After saving the file, the PrintQuality field is not changed, but you
get a nice footer with value 300.

Is this a bug to report, or am I doing something wrong here?

Reply With Quote
  #2  
Old   
robiman
 
Posts: n/a

Default Re: set_printquality bug in Excel.PageSetup - 12-14-2007 , 07:19 AM






Sorry, I forgot to mention, I'm using:
..NET framework 2.0.50727.1433
Excel 2003 SP3 (11.8169.8172)
Microsoft Excel 11.0 Object Library 1.5.0.0
Microsoft Office 11.0 Object Library 2.3.0.0

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.