Focal Point
[SOLVED]Column Headings in Excel Format Reports

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

August 08, 2013, 09:18 AM
Michele Brooks
[SOLVED]Column Headings in Excel Format Reports
I am running a report using an Excel macro template. One of the things that the macro does is an autoformat of the entire spreadsheet. The report has some column headings that are longer than the length of the data values for that column. When the macro does the auto format it formats based on the column values and not the column headings. Therefore, the column headings that are longer than the column values gets condensed to the length of the value which forces those column headings to go to the next line. See example below.

The column called "Bills" has a value of "11" which is shorter than the column heading. Therefore, when the autowidth formats the column heading looks like this:

Bil
ls

Can anything be done to prevent this from happening?

WF 761, Windows 7

This message has been edited. Last edited by: Michele Brooks,


WF 8205, Windows 10
Oracle DBMS
EXL07/PDF Output
August 08, 2013, 10:48 AM
J
Change wrap to squeeze (doesn't work in EXL07 7.7.03)...


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
August 08, 2013, 11:36 AM
Michele Brooks
The AutoFit Column Width in Excel is overriding the Squeeze in the WF stylesheet


WF 8205, Windows 10
Oracle DBMS
EXL07/PDF Output
August 08, 2013, 11:58 AM
J
You may need a slightly different macro that doesn't do the column fitting then...


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
August 09, 2013, 09:21 AM
jgelona
quote:
Originally posted by J:
You may need a slightly different macro that doesn't do the column fitting then...


Exactly. Just autofit the data columns you want instead of the all of them.

When I have long column titles and short data, I embed line feeds in the title, the autofit the title instead of the data.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
August 28, 2013, 01:34 AM
Rifaz
Hi Michele,

Add Cells.EntireColumn.AutoFit to your Macro and mark this topic as SOLVED. Smiler

Thanks,
Rifaz


-Rifaz

WebFOCUS 7.7.x and 8.x
September 11, 2013, 03:28 PM
Michele Brooks
[SOLVED] Thank you so much.


WF 8205, Windows 10
Oracle DBMS
EXL07/PDF Output
September 12, 2013, 01:00 AM
Rifaz
please edit in your first post and in the right most bottom there is an icon for "Edit or Delete.." , click & add [SOLVED] in the subject.


-Rifaz

WebFOCUS 7.7.x and 8.x
September 12, 2013, 11:00 AM
Michele Brooks
Thank you so much.


WF 8205, Windows 10
Oracle DBMS
EXL07/PDF Output