Focal Point
[CLOSED] Cannot give pixels in report styling

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

September 23, 2019, 04:54 PM
BI Dev
[CLOSED] Cannot give pixels in report styling
Hi Everyone,

I am just wondering if it is possible to give report dimensions in pixels. For example
TYPE=HEADING, LINE=1, ITEM=1, OBJECT=TEXT, FONT='ARIAL', SIZE=13 , COLOR=RGB(90 90 90), $.
Here size 13 is in pts not pixels.

I have gone through the below page in documentation and looks like only INCHES, CM and PTS are only allowed units. Please provide your inputs on this one.

https://infocenter.information...ource%2Ftopic167.htm

Regards
BI DEV

Regards

This message has been edited. Last edited by: FP Mod Chuck,


Webfocus 8105/8202
Windows
All Outputs
September 23, 2019, 05:01 PM
Waz
If you want to style a heading in HTML format (Assumed due to 13px size), I would suggest using CSS.


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!

September 23, 2019, 06:03 PM
BI Dev
Thanks Waz. That is my last resort.But, was just wondering if there is a possible workaround in FOCUS itself.


Webfocus 8105/8202
Windows
All Outputs
September 23, 2019, 06:13 PM
Waz
Your last resort would be asking TechSupport


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!

September 24, 2019, 04:40 AM
Wep5622
From your other posts I gather you're working on responsive design. In that case, forget about pixels. They don't scale at all.

Why that matters? Try viewing the same result on a "normal" HD computer display vs. a 4K display the same size vs. a retina display. The same number of pixels gets you a very different result on each, and probably way too small on the 4K display or way too big on the HD display.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
September 29, 2019, 11:48 AM
Doug
Isn't there a "UNITS=PX" available in the STYLESHEET? Not that it'll help here but it may, keeping in mind Wep's "HD computer display vs. a 4K display the same size vs. a retina display" comment.
October 01, 2019, 09:29 AM
BI Dev
Hi Wep5622,

Yes, I am working on using the responsive design. if pixels don't scale, which unit you think is better to use for responsive design.

Regards
BI DEV


quote:
Originally posted by Wep5622:
From your other posts I gather you're working on responsive design. In that case, forget about pixels. They don't scale at all.

Why that matters? Try viewing the same result on a "normal" HD computer display vs. a 4K display the same size vs. a retina display. The same number of pixels gets you a very different result on each, and probably way too small on the 4K display or way too big on the HD display.



Webfocus 8105/8202
Windows
All Outputs
October 01, 2019, 09:31 AM
BI Dev
Hi Doug,

UNITS=PX did not work for me.

quote:
Originally posted by Doug:
Isn't there a "UNITS=PX" available in the STYLESHEET? Not that it'll help here but it may, keeping in mind Wep's "HD computer display vs. a 4K display the same size vs. a retina display" comment.



Webfocus 8105/8202
Windows
All Outputs
October 01, 2019, 10:50 AM
FP Mod Chuck
BI_Dev

I looked back and the project to implement UNIT-PX was never implemented and has been dropped as a new feature enhancement.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats