PC Review


Reply
Thread Tools Rate Thread

Cell Coordinates and Printing

 
 
Robin Cole
Guest
Posts: n/a
 
      15th Apr 2008
I'm using ExportAsFixedFormat to create an XPS file of a worksheet. I'd like
to iterate through cells in the sheet and determine the coordinates of each
cell as it was printed on the XPS page. I've run into two problems with this.

1. The Left property of Range objects return different values depending on
the current view mode ("Normal", "Page Layout", and "Page Break Preview"). In
"Page Layout" mode, it lines up perfectly but the other two modes are equally
shifted left.

2. Values of the Top property are slightly too large (even in "Page Layout"
mode). For example, with 3/4 inch margins, a typical page is 9.5 inches or
684 points high. The Top of the bottom row printed on this page is returned
as 690.

What can I do to get around these problems and accurately determine page
coordinates?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get cell coordinates? lukus2005@gmail.com Microsoft Excel Discussion 3 25th Nov 2009 08:50 PM
Coordinates of Cell =?Utf-8?B?QUNGYWxjb24=?= Microsoft Excel Programming 2 6th Jul 2007 04:56 PM
Cell that is below given coordinates =?Utf-8?B?TXJU?= Microsoft Excel Programming 2 10th Sep 2006 08:21 PM
UDF cell coordinates bve@spe.be Microsoft Excel Programming 2 18th Oct 2005 10:04 AM
Printing with coordinates Beto Microsoft Excel Programming 1 24th Nov 2003 04:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:07 PM.