Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] How to PRINT in left top corner?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] How to PRINT in left top corner?
 Login/Join
 
Gold member
posted
Hello

I need your advise and will be thankful for help.

I need to print without grids (if possible - with red color arial 9) in left top corner, immediately as html page starts.

If I do

TABLE FILE DATABASES
PRINT CON_DIR NOPRINT
WHERE CON_DIR EQ '&&DB_PATH';
ON TABLE SUBHEAD "Reporting DB: "
END

Then I am getting text as needed, just at the beginning of page. But it is with grids (and not arial, not red and not size=9).

If I am starting to play with styles, i.e. like that

TABLE FILE DATABASES
PRINT CON_DIR NOPRINT
WHERE CON_DIR EQ '&&DB_PATH';
ON TABLE SUBHEAD "Reporting DB: "

ON TABLE SET PAGE NOLEAD
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF,$
ENDSTYLE
END

Then I can get grids switched off, right color, size etc, but I am getting several empty lines at the beginning of page. Text is not placed at the top of page. I have small frame, just for one line of text. Text becoming invisible, I need to scroll

p.s. I have tried to search for solution, but have not found a solution in forum

TIA for your advise,

Piter

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


Wf7704/WF8,Win64/32
 
Posts: 68 | Registered: February 20, 2004Report This Post
Master
posted Hide Post
Piter,

two possible reasons.

--First--
You should set the pagemargin and cellpadding to 0.
Odd thing is, these are only available with output format PDF.

Options: 2nd Tab. ( format )
Page Margins: Set all to 0.

     LEFTMARGIN=0.000000,
     RIGHTMARGIN=0.000000,
     TOPMARGIN=0.000000,
     BOTTOMMARGIN=0.000000,


and perhaps also the Cell padding.
     RIGHTGAP=0.000000,
     LEFTGAP=0.000000,


Both are only available in PDF, but work fine in HTML.

Then set the output back to HTML.

--Second--
Check your padding and margin of the iFrame you but the output in. Set those to 0 as well.


Good luck,
Dave


_____________________
WF: 8.0.0.9 > going 8.2.0.5
 
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010Report This Post
Gold member
posted Hide Post
Thank you Dave! After your advise I have played more and have found that GRID=OFF makes several empty lines. So I have left Grids, but have added BORDER=LIGHT and now it is quite fine when I do it like :

ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
LEFTMARGIN=0.000000,
RIGHTMARGIN=0.000000,
TOPMARGIN=0.000000,
BOTTOMMARGIN=0.000000,
RIGHTGAP=0.000000,
LEFTGAP=0.000000,
FONT=ARIAL,
SIZE=9,
STYLE=BOLD+ITALIC,
COLOR='RED',
BORDER=LIGHT,
$
ENDSTYLE


Wf7704/WF8,Win64/32
 
Posts: 68 | Registered: February 20, 2004Report This Post
Expert
posted Hide Post
Use CSS to style the HTML:

TABLE FILE CAR
PRINT COUNTRY NOPRINT
WHERE COUNTRY EQ 'ENGLAND';
ON TABLE SUBHEAD "REPORTING DB: "

ON TABLE SET PAGE NOLEAD
ON TABLE NOTOTAL
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, $
ENDSTYLE

ON TABLE HOLD AS H001 FORMAT HTMTABLE
END
-RUN

-HTMLFORM BEGIN
<html>
<head>
<style type="text/css">
body
{
margin: 0px; 
font-family: "Arial", sans-serif;
font-size: 9pt; color: red;
}

</style>
</head>
<body>

!IBI.FIL.H001;

<body>
</html>
-HTMLFORM END


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
Thank you , Francis!


Wf7704/WF8,Win64/32
 
Posts: 68 | Registered: February 20, 2004Report This Post
Virtuoso
posted Hide Post
Thank you , Francis!



 
Posts: 1012 | Location: At the Mast | Registered: May 17, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] How to PRINT in left top corner?

Copyright © 1996-2020 Information Builders