Focal Point
[SOLVED] Column Heading in excel too long - It prints with a special character

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5417010426

September 11, 2012, 02:03 PM
Riya
[SOLVED] Column Heading in excel too long - It prints with a special character
Hi,
I'm having a issue with a excel column heading which is relatively long(see below). It prints with a special character(square box) in the heading where I have commas to print the heading in next line.

TABLE FILE TABLE A
SUM
EXER_NUM_US AS 'No.of Policies,Exercising,GPO - YTD (US)'
BY YEAR
BY ISS_YR
END
-RUN

IT PRINTS AS "No.of Policies(square box)Eligible for(square box)GPO - YTD (US)"

When i double click the column in excel it looks good but when we first open the report it shows as above and the user is not happy with it.

Any help or suggestions is appreciated!

Thank you
RK

This message has been edited. Last edited by: Kerry,


WebFOCUS 8.1.05
Excel, PDF, Pivot, HTML
Windows
September 11, 2012, 03:44 PM
Tony A
The following shows perfectly OK run from 7.7.03 to MS Excel 2007

TABLE FILE IBISAMP/CAR
  SUM RCOST
      DCOST
   BY COUNTRY AS 'No.of Policies,Exercising,GPO - YTD (US)'
   BY CAR
   BY MODEL
ON TABLE SET PAGE NOLEAD
ON TABLE PCHOLD FORMAT EXL2K
END
-RUN

What version of MS Excel are your end users / you using?

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
September 11, 2012, 04:13 PM
sumant
TOny's code works perfectly in both Excel 2000 and Excel 2007, when run from 7.7.02.

Are you using an older version of excel than 2000?


WebFOCUS 7.7.02Windows
Output Formats: Excel, HTML, PDF
September 11, 2012, 04:42 PM
Riya
we use EXCEL 2007. The problem is, this error doesn't occur all the time. Most of the time it occurs in caster jobs. When I run the report it print's ok but the same report from caster sometimes it prints out with small square character. Not sure why this error is inconsistent.

Any suggestions?


WebFOCUS 8.1.05
Excel, PDF, Pivot, HTML
Windows
September 11, 2012, 05:40 PM
Waz
How did you get the text in the title, type it or cut and paste ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

September 12, 2012, 08:43 AM
Mary Watermann
Just a thought ... have you tried removing the commas and using "TYPE=REPORT,COLUMN=N3,WRAP=nnn,$ " ?


WF 7.6.10, Windows, PDF, Excel
September 12, 2012, 10:50 AM
Riya
Mary,
I used WRAP & Squeeze and it does wrap but the text still print in single line and most of it is hidden because I wrapped. Full column title is not visible because of WRAP.


WebFOCUS 8.1.05
Excel, PDF, Pivot, HTML
Windows
September 12, 2012, 10:51 AM
Riya
Waz,
I typed it.


WebFOCUS 8.1.05
Excel, PDF, Pivot, HTML
Windows
September 12, 2012, 11:42 AM
Tony A
quote:
I used WRAP & Squeeze

Use WIDTH with WRAP not SQUEEZE

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
September 13, 2012, 10:12 AM
Riya
I now used WRAP and WIDTH in my stylesheet. It works that way I wanted in development and hoping it will look the same in caster too once its scheduled.

Thank you Tony!


WebFOCUS 8.1.05
Excel, PDF, Pivot, HTML
Windows
September 13, 2012, 12:22 PM
Tony A
A pleasure Smiler

T