Focal Point
[SOLVED] Excel print * except 1st column

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

February 04, 2015, 12:39 PM
Sandhya j
[SOLVED] Excel print * except 1st column
Hi,

We have one excel report which will be generated with dynamic number of columns using the Print *. Now I would like to print all columns except first column. As I don't know specific number of columns count, how can be this achieved?

Iam using Webfocus 764 version.

Thank You
Sandhya J

This message has been edited. Last edited by: <Kathryn Henning>,


WEBFOCUS 8202/Windows
PDF/HTML/XML
February 04, 2015, 04:08 PM
Waz
You should be able to using CHECK FILE HOLD and a -INCLUDE.

E.g.
TABLE FILE CAR
PRINT
COUNTRY
CAR 
MODEL
BODYTYPE
ON TABLE HOLD AS TMP_CAR
END

-RUN

CHECK FILE TMP_CAR HOLD

-RUN

TABLE FILE HOLD
PRINT  FIELDNAME
WHERE FLDNO GT 1
ON TABLE HOLD AS FEX_COLUMNS
END

-RUN

TABLE FILE TMP_CAR
PRINT
-INCLUDE FEX_COLUMNS
END



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!

February 04, 2015, 04:39 PM
susannah





In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
February 04, 2015, 10:08 PM
Sandhya j
Thank You Waz, this solution is working fine.

quote:
Originally posted by Waz:
You should be able to using CHECK FILE HOLD and a -INCLUDE.

E.g.
TABLE FILE CAR
PRINT
COUNTRY
CAR 
MODEL
BODYTYPE
ON TABLE HOLD AS TMP_CAR
END

-RUN

CHECK FILE TMP_CAR HOLD

-RUN

TABLE FILE HOLD
PRINT  FIELDNAME
WHERE FLDNO GT 1
ON TABLE HOLD AS FEX_COLUMNS
END

-RUN

TABLE FILE TMP_CAR
PRINT
-INCLUDE FEX_COLUMNS
END

This message has been edited. Last edited by: Sandhya j,


WEBFOCUS 8202/Windows
PDF/HTML/XML
February 05, 2015, 01:30 AM
Ram Prasad E
Good one Waz. Thanks for sharing.


WebFOCUS 8.1.05
Windows
http://ibiwebfocus.wordpress.com
https://www.facebook.com/groups/ibi.webfocus/
February 05, 2015, 01:55 AM
Pravin.Singh
Really a nice on Waz.
Got to learn something new. Thanks for sharing!!!

Thanks,
Pravin Singh


WebFOCUS 7703
Windows, All Outputs
pravinsinghwebfocus.blogspot.com