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     Directly print reports from WebFOCUS

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Directly print reports from WebFOCUS
 Login/Join
 
Gold member
posted
I need to print reports with a STYLE sheet directly from WebFOCUS 7.6 without first opening the file with Adobe. I now get simple text using the following examples:
Example 1:
FILEDEF HOLDPRT DISK C:\WORK\HOLDPRT.WP
SET PRINTPLUS=ON
SET STYLEMODE=PAGED
TABLE FILE FANNAMES
PRINT TITLE AS '' FIRSTNAME EMAIL
BY LASTNAME
ON TABLE SET STYLE *
TYPE=HEADING, LINE=1, OBJECT=TEXT, ITEM=1,FONT=COURIER, SIZE=40,STYLE=BOLD, $
TYPE=HEADING, LINE=1, OBJECT=TEXT, ITEM=3,FONT=COURIER, SIZE=40,STYLE=BOLD, $
TYPE=HEADING, LINE=1, OBJECT=TEXT, ITEM=4,FONT=COURIER, SIZE=40,STYLE=BOLD, $
ENDSTYLE
ON TABLE SAVE AS HOLDPRT FORMAT WP
END
-RUN
DOS COPY C:\WORK\HOLDPRT.WP LPT1

Example 2:
OFFLINE
FILEDEF OFFLINE DISK C:\WORK\HOLDPRT.TXT
TABLE FILE FANNAMES
PRINT TITLE AS '' FIRSTNAME EMAIL
BY LASTNAME
ON TABLE SET STYLE *
TYPE=HEADING, LINE=1, OBJECT=TEXT, ITEM=1,FONT=COURIER, SIZE=40,STYLE=BOLD, $
TYPE=HEADING, LINE=1, OBJECT=TEXT, ITEM=3,FONT=COURIER, SIZE=40,STYLE=BOLD, $
TYPE=HEADING, LINE=1, OBJECT=TEXT, ITEM=4,FONT=COURIER, SIZE=40,STYLE=BOLD, $
ENDSTYLE
ON TABLE SET PRINT OFFLINE
END
-RUN
DOS COPY C:\WORK\HOLDPRT.TXT LPT1

I also get plain text using .PS instead of .WP.
Kent


Windows2003 Server, WebFOCUS 7.7.02 Developers Studio and MRE
 
Posts: 63 | Location: Ft. Wayne, IN | Registered: February 20, 2007Report This Post
Expert
posted Hide Post
Kent

quote:
ON TABLE SAVE AS HOLDPRT FORMAT WP


Try:

ON TABLE SAVE AS HOLDPRT FORMAT HTMTABLE


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Guru
posted Hide Post
Format PS should work with your PDF stylesheet. It should be almost identical (except PS won't squeeze a few % to fit the page like Adobe Reader does).


(Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats)
 
Posts: 391 | Location: California | Registered: April 14, 2003Report This Post
Gold member
posted Hide Post
My issue is that I need to print the file directly without manually opening it with adobe and then clicking on print. After I create the hold file with "ON TABLE SAVE AS HOLDPRT FORMAT HTMTABLE", I have tried to print the file with either "DOS PRINT /D:LPT1 C:\WORK\HOLDPRT.HTM" or "DOS COPY C:\WORK\HOLDPRT.HTM LPT1". Is there a way to directly print in WebFOCUS without manually opening the file first.
Kent


Windows2003 Server, WebFOCUS 7.7.02 Developers Studio and MRE
 
Posts: 63 | Location: Ft. Wayne, IN | Registered: February 20, 2007Report This Post
Expert
posted Hide Post
Hi Kent,

One of our internal people reviewed this topic and suggested that it is not believed that there is a way to do this from WebFOCUS (many thanks for everyone's input on this topic Smiler). It is recommended that you open a case with Information Builders' Customer Support Services and submit a New Feature Request. To do so, you may either call at 1-800-736-6130, or access the online system InfoResponse at http://techsupport.ibi.com. Here is a list of information to be ready when you call: http://techsupport.ibi.com/before_you_call.jsp.

Hope this helps. Music

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
<JG>
posted
In the good old days we used to do this sort of thing all of the time.

Very much depends on your make and model of printer and what exactly it is that you
want to print.

If it is something as simple as you show, all you need to do is include the correct control
Sequences.

For example the control for bold on an HP printer is ‘Esc s3B’
For courier font ‘Esc (s4099T’

You can obviously copy to your printer on ltp1 (unfortunately I cannot because I’ve only got a USB printer
not a good old parallel) so the escape method should work for you.

Each escape sequence that does something like BOLD,italic etc. has a corresponding
Sequence to turn it off.

In your case if it’s a simple listing where you want the first 3 lines bold and the rest normal
the following approach should work.
(the escapes sequences are best created in EDLIN and pasted into the focexec)

FILEDEF PRINTFILE DISK PRINTFILE.TXT (APPEND
-RUN
-WRITE PRINTFILE ‘Escs3B’ ‘Esc(s4099T’
-WRITE PRINTFILE Heading text line 1
-WRITE PRINTFILE Heading text line 2
-WRITE PRINTFILE Heading text line 3
-WRITE PRINTFILE ‘Escs0B’

TABLE FILE FILENAME
PRINT FIELDA
BY FIELDB
ON TABLE HOLD AS PRINTFILE FORMAT WP
END
-RUN
!COPY PRINTFILE.TXT LPT1


You can find the HP escape codes at

http://h20000.www2.hp.com/bizsupport/TechSupport/Docume...sp?objectID=bpl02705

Most other printer manufactures supply similar
 
Report This Post
Guru
posted Hide Post
Kent,

We're on an older release of WF than you are, but, I opened case long ago on this same topic.
Here's what IBI sent to us to get this working;


The follwing is an example of sendingoutput directly to the Printer in PDF.

Example:

!NET USE LPT1 \\IBIPRINTA\28E2 /user:USERNAME PASWRD

SET ONLINE-FMT=STYLED
SET ORIENTATION=LANDSCAPE
SET PAGESIZE=LEGAL
OFFLINE

FILEDEF JASON1 DISK C:\TEMP\JASON1.PDF
TABLE FILE CAR
PRINT MODEL BODYTYPE SEATS
HEADING
"YES PS1"
ON TABLE NOTOTAL
ON TABLE HOLD AS JASON1 FORMAT PS
ON TABLE SET STYLE *
ENDSTYLE
END
!PRINT /D:LPT1 C:\TEMP\JASON1.PDF


I also support an old Focus Six for Windows app that runs a batch cycle where all the reports are sent directly to the printer overnight. It was a nice feataure, sure wish it was easier with WebFOCUS.

Good Luck,
Carol



WebFOCUS 7.6.6/TomCat/Win2k3
 
Posts: 428 | Location: Springfield, MA | Registered: May 07, 2003Report This Post
Expert
posted Hide Post
do it in Caster , in html, and put in your printer address as the destination.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report 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     Directly print reports from WebFOCUS

Copyright © 1996-2020 Information Builders