>>
APLDN Home

>>
Events

>>
Trainings

>>
APL Books

>>
APLDN Links

>>
Discussion Groups

>>
Downloads

>>
Articles

>>
Library

>>
Learning Tools

>>
APLDN User IO

>>
APL2000.com




Bug Reports

Author Thread: xPrintOptions Problem with Grid 76.3.0.3
Rex.Swain
xPrintOptions Problem with Grid 76.3.0.3
Posted: Thursday, October 12, 2006 10:20 AM (EST)

Here's a quick Grid print preview demo, mostly from the Grid manual.  When I use the new xPrintOptions property, most of the row and column header cells appear correctly, but the upper-left header cell is misplaced!  A picture is attached.

 

ppbug;m;w;s;z;k;Œwself
© When print preview form appears, note missing upper-left header cell
© Scroll down to find it
© 12 Oct 2006  Rex Swain, Independent Consultant, www.rexswain.com

Œwself„'fm' Œwi 'Create' 'Form' ('where' 4 10)
   Œwi 'caption' 'Form with Grid'

   Œwself„'.grid' Œwi 'Create' 'APL.Grid'
      Œ„'APL version ',•Œsysver
      Œ„'Grid version ',•Œwi 'XGridVersion'
      Œwi 'xRows' 100
      Œwi 'xCols'  50
      Œwi 'xValue' ¯1 ¯1 'Bug'
      Œwi 'xValue' ¯1  1 (  1 50½¼  50)
      Œwi 'xValue'  1 ¯1 (100  1½¼ 100)
      Œwi 'xValue'  1  1 (100 50½¼5000)

Œwself„'printer' Œwi 'Create' 'Printer'
   Œwi 'scale' 3
   Œwi 'margin' 72 72 72 72

Œwself„'fm.grid'
   Œwi 'xPrinter' 'printer'
   Œwi 'xPrintZoom' 2
   Œwi 'xPrintOptions' 3  © header rows and cols
   k„Œwi 'xPrintInit' 0 1 1 10 5  © just a few cells

Œwself„'pre' Œwi 'Create' 'Form' ('where' 6 20)
   Œwi 'caption' 'Print Preview'
   Œwi 'scale' 5
   Œwself„'.pic' Œwi 'Create' 'Picture'
      Œwi 'where' (0 0,'..' Œwi 'size')
      Œwi 'style' 16 64
      Œwi 'border' 0
      Œwi 'scale' 5
m„10
w„('pre.pic' Œwi 'size')[2]-m×2
s„'fm.grid' Œwi 'PrintMetrics' 'size'
z„w÷s[2]
'pre.pic' Œwi 'imagesize' (m+m+z×s)
'fm.grid' Œwi 'PrintWindow' ('pre.pic' Œwi 'hdc'),m,m,z×s
'fm.grid' Œwi 'PrintPage' ¯2
'fm.grid' Œwi 'PrintPage' 1
'pre.pic' Œwi 'Paint'

k„'pre' Œwi 'Wait'



Attached file: ppbug.jpg


Comments:

Author Thread:
Support
xPrintOptions Problem with Grid 76.3.0.3
Posted: Monday, February 19, 2007 3:10 PM (EST)

This is a bug.  But note that that header cell does appear correctly in the printed page.

Thank you for bringing this bug to our attention.

 

APL2000 Support

     



APL2000 Official Web Site

Here is a test to find out whether your mission in life is complete. If you're alive, it isn't.
--- Richard Bach

APLDN Home   |    |  Events   |  Trainings   |  APL Books   |  APLDN Links   |    |  Discussion Groups   |    |  Downloads   |  Articles   |  Library   |  Learning Tools   |  APLDN User IO   |  APL2000.com   |