How to make the Pentaho Report Designer so that when exported to Excel, the text fits completely into the cell? - report

When exported to Excel, the text overflows the cell. However the PDF report version shows the text completely
enter image description here
enter image description here
I set the element height = 100% and dynamic-hegith = true and in excel properties wrap-text-override = true but it didn't help.
enter image description here
enter image description here

Related

How can I replace a part of pre-written text via officer/r in Powerpoint

Is there a way to read the text of a slide from Powerpoint and then replace a part of the text with a value from R. See image 1, the black text is added by an user, and the red text is written by the R notebook.
I want to do the writing part in Powerpoint, I don't want to add the whole text in R. Otherwise it is impossible for people without R to add text to the Powerpoint.
If there is a way to define a variable in Powerpoint (that can be placed inside a textbox), that would also solve the problem. :)
Example text

Why i modify typora's text justification is invalid?

I modify the typora's github.css on macos in this way.
enter image description here
but it doesn't work,it's also align left
enter image description here
As shown in this link [BUG]Modifying the CSS file cannot make the text justify on macbook., the rendering engine of Typora does not support text-align: justify;.

Image alt text not displaying on WordPress

I have added an alt text on my image, but it doesn't display on homepage. Is there a way to get the alt text to display with the image without re-attaching the image, since the image was previously added on the site without alt text.
http://prntscr.com/lenin2
http://prntscr.com/lenj0o
Thanks
The "alt" text isn't the text which is displayed - that would be the figcaption text.
If you add a caption text directly when you insert the image (or when you edit it ) in Wordpress, WP automatically creates a shortcode that puts the image and the text into a figure element which contains both the image and the caption text (inside a figcaption tag).
(And if you don't add a caption text in WP's image edit box, the image is inserted without the figure tag, as a regular img tag. Whatever the alt attribute in there contains, will not be displayed - it only serves for accessibility purposes or is displayed if the image is missing)

displaying a text using QLabel ontop of another QLabel showing image has become such a pain

Its simple thing, but I can't figure out why the overlay text is not displayed ontop of another QLabel,
here is the code I have that sets the overlay label that has text onto another existing label displaying image
def _buildUi(self):
self.label = QtGui.QLabel()
self.overlayExifText = QtGui.QLabel(self.label)
self.overlayExifText.setSizePolicy(QtGui.QSizePolicy.Ignored,
QtGui.QSizePolicy.Ignored)
self.overlayExifText.setStyleSheet("QLabel { color : blue; }")
self.overlayExifText.setAlignment(QtCore.Qt.AlignTop)
self.label.setBackgroundRole(QtGui.QPalette.Base)
self.label.setSizePolicy(QtGui.QSizePolicy.Ignored,
QtGui.QSizePolicy.Ignored)
self.label.setAlignment(QtCore.Qt.AlignCenter)
self.setCentralWidget(self.label)
here is the method that updates the text for current image
def showImageByPath(self, path):
if path:
self.overlayExifText.setText("\n".join(list(utils.getExifData((path)))))
image = QtGui.QImage(path)
pp = QtGui.QPixmap.fromImage(image)
self.label.setPixmap(pp.scaled(
self.label.size(),
QtCore.Qt.KeepAspectRatio,
QtCore.Qt.SmoothTransformation))
only first letter of the text gets visible. also I tried setting some default text then it displays text with black background then that area also shows the little bit more of data the is yielded by the second method above. For full code have a look at this repo
To display image and text simultaneously following approach can be useful:
Set the image as background image on label:
label.setStyleSheet("background-image: url(:/1.png);")
Set the text you want to display on top of the image:
label.setText("text")
..

Need to change the text in an image button

I am having an image button as I have attached here. The respective code I use for this image button is
<asp:ImageButton ID="imgbtn_GenerateRpt" runat="server" ImageUrl="~/images/report.gif" Enabled="false" CssClass="imageButton"
onclick="imgbtn_GenerateRpt_Click"/>
css class
.imageButton![enter image description here][1]
{
position:relative;
top:5px;![enter image description here][2]
}
The text within this image button is "Generate Report". I want a custom text "Acknowledge" to appear inside this image button instead of "generate Report" text.
How can i achieve this without using any image editing tools like photoshop or coreldraw?
Any help on this?
If the image itself has text in it, then there really isn't any way around creating a brand new image.
Depending on the shape of the image you could possibly overlay a <div> element with its background color set the same as the image, but at that point you would simply be wasting your time.
Download Paint.Net for free and spend about 5 minutes creating a new image.

Resources