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     [WORKAROUND] Displaying BLOB in SUBHEAD does not work in MRE

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[WORKAROUND] Displaying BLOB in SUBHEAD does not work in MRE
 Login/Join
 
Guru
posted
All

we've got a problem with SQL Server BLOBs in SUBHEADs when outputting to PDF.It works fine when displaying the BLOB in a PRINT statement, but that way the report gets very long since an image displays on every line, even thourg there is a "real" picture in say 10% of the rows.

SQL SQLMSS
PREPARE SQLOUT FOR
SELECT TOP 50
T1.[GUID],
T1.[Is Image Present],
T1.[Image Data]
FROM table T1
END

-* This code does not work when proc in MRE
TABLE FILE SQLOUT
PRINT
Is_Image_Present AS '?'
Image_Data
BY GUID
ON GUID SUBHEAD
" "
" "
WHEN Is_Image_Present EQ 1
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=SUBHEAD, IMAGE=(Image_Data), POSITION=(5.15 +0.024), SIZE=(0.4 0.4), $
ENDSTYLE
END
-* This does work
TABLE FILE SQLOUT
PRINT
Is_Image_Present AS '?'
Image_Data
BY GUID
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=Image_Data, IMAGE=('Image_Data'), SIZE=(0.4 0.4), $
ENDSTYLE
END

The weird thing is that both version do work when running from an app on the server.

We're on SQL Server 2005.

Any idea?

Tia
Håkan

This message has been edited. Last edited by: Håkan,


WebFOCUS DS 8.0.06/08 DS/AS
WebFOCUS RS 8.0.08 (Linux/IBM i)
WebFOCUS Client 8.0.06 (Linux)
 
Posts: 319 | Location: Stockholm, Sweden | Registered: February 04, 2004Report This Post
Guru
posted Hide Post
I found a workaround. Still displaying the BLOB on every single line, but if is_image_present = 0 I resize the image to the smallest possible size. That way it fitted the height of every line.


WebFOCUS DS 8.0.06/08 DS/AS
WebFOCUS RS 8.0.08 (Linux/IBM i)
WebFOCUS Client 8.0.06 (Linux)
 
Posts: 319 | Location: Stockholm, Sweden | Registered: February 04, 2004Report 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     [WORKAROUND] Displaying BLOB in SUBHEAD does not work in MRE

Copyright © 1996-2020 Information Builders