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     Compressing or zipping pdf output

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Compressing or zipping pdf output
 Login/Join
 
Member
posted
I have a webfocus report that generates a 20 to 100 page pdf being run from a jsp. I need to find a way of compressing or zipping the file. I understand that report caster allows zipping the file but i don't want the report scheduled. Can anyone give me some options to help solve my problem?
 
Posts: 1 | Registered: January 16, 2007Report This Post
<JJI>
posted
Hi Chesser,

What platform are you on? If it is windows you can use dos commands in webfocus procedures. In Dos you can write the commands to zip the file with PKZIP or Winzip32 .
I already used dos commands in a focus procedure but I never tried to zip a file with dos commands. This link will show you how to do this in DOS.

But before you can use the DOS commands you need to tell Webfocus that the next set off commands are Dos commands.

So type:
-DOS followed by your dos-commands

Now I think you need to do it in 2 steps.
Step1: create your pdf and save it somewhere(filedef)
Step2: issue the Dos command for zipping the file like this
-DOS Pkzip –a c:\temp\PDFREPORT.zip “C:\My Documents\Report.pdf”

or
-DOS winzip32 -a "c:\My Documents\Report.pdf" c:\temp\PDFREPORT.zip

Let me know if this works for you? Wink

Dirk JJI
 
Report This Post
Platinum Member
posted Hide Post
Chesser,

Think about where you hold the report before it is picked-up by the DOS command(s).
- Output to 'Hold' goes into the iWay/EDA agent's temporary workspace whose location is found by use of the TEMPPATH(,) function.
- Output to a 'FILEDEF' goes to the specified static location.

If there is any chance that the fex will be executed simultaneously by more than one RCaster schedule or Adhoc/MRE user, you don't want to involve a static location as they may overwrite each other. It's always best to output to the session's temp space, then use D/M to construct the fully qualified name of DOS's fromfile using TEMPPATH in a concatenation syntax.

I can post examples if you need them.

Chris Burtt


WIN/2K running WF 7.6.4
Development via DevStudio 7.6.4, MRE, TextEditor.
Data is Oracle, MS-SQL.
 
Posts: 154 | Location: NY | Registered: October 27, 2005Report 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     Compressing or zipping pdf output

Copyright © 1996-2020 Information Builders