Focal Point
[CLOSED] How to create a Template?

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

March 16, 2012, 01:20 AM
Praveen Kumar
[CLOSED] How to create a Template?
Hi All,

I want to create a template and use it for generating reports based on this template. Can you pls tell me how to proceed with it?

The template contains an image, page headings and footings.

Thanks in advance..

Praveen

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


7.7.02, Windows Server 2008, All Formats
March 16, 2012, 08:59 AM
MAdams1
We do this too. We have a logo and style to the heading and footing. All you need to do is start a new fex and put everything in it that you want to be standard in all of your reports. Then you save that style, give it a meaningful name to you. It will be saved as a .sty file in your other folder. Now you can use it in any report by just doing -INCLUDE in the style section of the fex. Here is an example of how we do it. The name of our style is kvcc_wf.sty.

 
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = kvcc_wf,
$
ENDSTYLE

 


Hope this helps.

ma

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


WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML
March 18, 2012, 04:27 PM
Waz
We do similar things.

All our common sections of report are in INCLUDE files, these are driven by amper variables to set whats needed.


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!

March 23, 2012, 12:46 AM
Praveen Kumar
Hi ma

Thanks for your response.
Do let me know, how to save that into a stylesheet?

Thanks

Praveen


7.7.02, Windows Server 2008, All Formats
March 23, 2012, 08:35 AM
MAdams1
Praveen

Are you wanting your template to 'style' your reports or are you wanting a template that has
the same Heading and Footing 'text'. We may be talking about two different things, I just wanted to be clear. We also do what Waz does.


WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML