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] Print a file with a report?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Print a file with a report?
 Login/Join
 
Member
posted
Is there anyway to print a file with a report?

i.e.

Report is called with a variable holding the filename.

Webfocus prints report and opens passed in file name and prints it with the report (before or after).

We have scenario's where users need to have "bundled" print jobs of this nature.

Any help or thoughts on the subject are appreciated.

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


WebFocus 7.6.2, MRE through SharePoint, Win XP/2k3.
 
Posts: 22 | Registered: May 30, 2007Report This Post
Virtuoso
posted Hide Post
Do you mean Attach a file? I'm don't quite understand what you are asking to do.


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Member
posted Hide Post
Sorry about that. Here is a more detailed description.

What we are attempting to do is to include a button in an application we are creating.

When clicked, it will call a report from WebFocus passing in some variable for the report to run off of, one of this will include a file name.

What we "hope" will occur next is that the report will generate and print immediately. Not go to HTML, XLS, PDF, etc.

If this first part is possible, the second part we hope to include is that it will print a document along with it.

So lets say we have report A and MS Word File Z.

When the report A is called, it will run then print.

Then it will immediatly run a print command against the MS Word file.

An example would be if we had a PO that we are printing from WebFocus, but need to attach a detailed document along with the printed report.

I have a feeling we will be doing all this through the code in the application, but I thought I would ask here first.

Thanks!


WebFocus 7.6.2, MRE through SharePoint, Win XP/2k3.
 
Posts: 22 | Registered: May 30, 2007Report This Post
Virtuoso
posted Hide Post
quote:

What we "hope" will occur next is that the report will generate and print immediately. Not go to HTML, XLS, PDF, etc.

I think you're going to have a little problem with this one. WF returns a report through a client to the browser session that requested it. If it's a PDF doc then it opens the reader, if it's Excel, then it opens in Excel, or just displays in the browser for HTML. Each of these have their own print mechanism, so the printing will have to be either a manual process or something that you have coded in Java, javascript, macros, etc.

As for part 2, you can execute print commands from the operating system, but they are relative to that specific box/server where WF resides. In other words, 1) the document must exist on the WF server and 2)it still would not be able to deliver it to the printer that is sitting in your cubilce unless you have some way of driectly accesing that printer from the WF server platform.
There are a few options using the ReportCaster API that you could run the report and have it printed to a specifies network printer. This would invovle creating your own app using the API to schedule a "Run once" job to be distributed to a user-specified network address.

In other words, your feeling was probably correct. Good luck!


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Expert
posted Hide Post
You should be able to produce a postscript file to send to a printer, assuming it supports it.

As for the second part, perhaps if Word is on your server,if you can do that, you could call it with an OS call.
"{path}\winword" "{path}\file"  /mFilePrintDefault /mFileExit


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
Thank you for the responses. Guess it's time to start coding. =p


WebFocus 7.6.2, MRE through SharePoint, Win XP/2k3.
 
Posts: 22 | Registered: May 30, 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] Print a file with a report?

Copyright © 1996-2020 Information Builders