As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
I need to generate a report in excel format and my question is there any possibilities to set the margins so that the excel output with its margin settings will reflect to my requirements.
any suggestions? Thanks in advanceThis message has been edited. Last edited by: Kerry,
There are StyleSheet settings for LEFTMARGIN, RIGHTMARGIN, TOPMARGIN, and BOTTOMMARGIN. But these apply only to HTML and PDF output formats - not Excel. You might consider using an Excel template.
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007
The only way I have found to do this is with an excel template and Auto-Run Macro. When I have created a template and embedded to print setup attributes, they are not there when I run the report. I have to create the template with a macro that will do the print setup functions (margins, page headings, etc.)
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006
Thanks for the information provided. So we need go for Excel Templates and Macros for print margin settings if we want to set the margins for Excel format.
I came across this the other day on this site. Sorry I cannot find the post or the author, it wasn't me, but I'm using this and it works great. This is a macro template for a .mht file. Use, modify and expand as needed. I usually just record the macro I want and insert the code where indicated.
Sub Auto_Open()
For Each ws In Worksheets
With ws
If ws.Name = "Sheet2" Then
' You can use this section to delete surplus worksheets
Application.DisplayAlerts = False
ws.Delete
Application.DisplayAlerts = True
' This will turn of screen updating so that the changes do not flash
' on the screen at the end user. No epileptic fits thank you!
ElseIf ws.Name = "Sheet1" Then
Application.ScreenUpdating = False
' Find the extents of the report
' ws_last_col = Cells.SpecialCells(xlLastCell).Column
' ws_last_row = Cells.SpecialCells(xlLastCell).Row
'
' Insert Additional Commands and Formatting for Sheet 1 Here
'
'
' Turn screen updating on again
Application.ScreenUpdating = True
End If
End With
Next
End Sub
This message has been edited. Last edited by: jgelona,
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006