When saving an Eviews table as emf/png/ or similar I am getting a white area in the upper right hand corner that is not present in the table in the Eviews workfile. This was not the case prior to my Eviews 13 update.
I simplified my code as an example for you:
Code: Select all
WfCreate(page=a) C:\temp\temp.wf1 a 2007 2010
Series year = 1999
Series vX = 3
Series vY = 4
Series vZ = 5
Group g1 Year vx vy vz
Stomna(g1, m1)
m1 = @Transpose(m1)
Freeze(t1) m1.table
Call FormatlandscapeTable(t1)
t1(1,1) = "Title"
t1(2,1) = "Percent"
t1(3,1) = "X"
t1(4,1) = "Y"
t1(5,1) = "Z"
t1.save(t=emf, n="-") C:\temp\Test
Subroutine FormatLandscapeTable(Table TAB)
tab.deleterow(1) 2
!kr = tab.@rows
!kc = tab.@cols
tab.setformat(2) f.0
tab.setformat(3:!kr) f.1
tab.insertrow(!kr+1) 2
tab(!kr+2,1) = "Date and time"
tab.setlines(@All) -a
For !i = 3 To !kr Step 2
tab.setfillcolor(!i) @rgb(196, 226, 255)
Next
For !i = 1 To 2
tab.setfillcolor(!i) @rgb(54, 100, 139)
tab.settextcolor(!i) White
Next
tab.setfillcolor(!kr+2) White
EndSub
Shell C:\temp\Test.emf
Enterprise edition october 11 build