Focal Point
stylesheets: posting gif in a host file

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8411006272

February 20, 2008, 11:59 AM
jbanas6
stylesheets: posting gif in a host file
How can i take a logo with a (.gif ending) and put it into a host report within a style sheet. Any help would be greatly appreciated!!


WF 7.6.10 /IIS 6/ JBoss Enterprise 4.3
Windows XP SP 2/Windows 2003 Server
MVS 7.3.3
February 20, 2008, 12:29 PM
Tony A
Check out the use of IMAGE keyword within the HEADING type.

TYPE=HEADING, IMAGE=/approot/anthonya/web.gif, $


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
February 20, 2008, 02:43 PM
Darin Lee
If the .GIF is already in an app directory on the server path, you only need to specify the image name (no extension required). You probably also will make use of SIZE and POSITION attributes for proper placement. Tony already specified where to look for more complete instructions.

You also may want to make a note that we experienced problems with using some of our GIF images when upgrading to 71x from 53x. Notice I said some, not all. Never figured that one out, but easy enough to convert them to JPG or SVG so we never dug into it.

Anyone else run into something similar?


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
February 20, 2008, 03:17 PM
jbanas6
Please remember that it is the HOST and not the Web side.


WF 7.6.10 /IIS 6/ JBoss Enterprise 4.3
Windows XP SP 2/Windows 2003 Server
MVS 7.3.3
February 20, 2008, 07:51 PM
Darin Lee
That's what we are all talking about. Are you trying to define HOST as something different than what it is?


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
February 21, 2008, 02:36 AM
Tony A
As has been said before, the location for an IMAGE file has to be one of the following -

Within the APP folders on the reporting server if the output format is PDF. This is because the PDF stream is completed on the RS before being sent back to the client.

A "real" URL that can be entered into a Web browser address bar to display the image within that browser. This is a requirement for HTML output because HTML imgs are located via a URL. Yes, I know that most people know that (or should do) but just in case someone doesn't ..... they know now (unless they don't learn from reading Wink).

For Excel output you have to be able to use the location for your image in a hyperlink, whether that be a URL or somewhere on a network share.

Think about how your output requires the image file and you might then be able to understand where the file needs to be, and you days of pondering over this life changing question will be a thing of the past Smiler

Smile, it's only 14 weeks 'til Summit!

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
February 21, 2008, 08:05 AM
jbanas6
Please remember that this is not WebFocus it is Host Focus running on MVS. There are no app paths on the host.


WF 7.6.10 /IIS 6/ JBoss Enterprise 4.3
Windows XP SP 2/Windows 2003 Server
MVS 7.3.3
February 21, 2008, 08:29 AM
Tony A
If you are using stylesheets then the same basic rule applies.

Identify how your end application uses the address of the file and apply it!

E.g. Ask yourself - What application will be used to display the output? Then decide how you need to identify the path to the file.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
February 21, 2008, 01:37 PM
jbanas6
Thanks Tony and Darin for your suggestions. The .gif must be in a PDS with a DDName of the gif.


WF 7.6.10 /IIS 6/ JBoss Enterprise 4.3
Windows XP SP 2/Windows 2003 Server
MVS 7.3.3
February 22, 2008, 11:10 AM
Darin Lee
quote:
WF 5.33, 7.64 Virtual/Apache Tomcat 5.5/IIS 6/
Windows XP SP 2/Windows 2003 Server


It would be hard to understand from your profile that you were talking about FOCUS on MVS. if you're creating these using only FOCUS, I would be interested to know what output format your "host file" is and how you are delivering it for use. I would suppose if you want images in it, then it is being printed or delivered to a vewing utility like acrobat reader or Ghostview.

The right answer may have come sooner, but glad you found your answer.


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