Display image using ireport and oracle xe and apex - image

I am using ireport 5.1 to build my report, now I am trying to display an image in my pdf report, but it is not showing up.
I copied the jpg file to the jasper directory where I have my ireport compiled file ( jrxml ),
I am referencing the jpg file in my report as :
XML CODE :
<image>
<reportElement uuid="generated_uuid" x="2" y="4" width="119" height="50"/>
<imageExpression><![CDATA["logovinhedo.jpg"]]></imageExpression>
</image>
but it doesn't work

Please try the below code snippet:
Store the full image path in a parameter IMAGE_PATH
Apply the parameter instead of image file name.
<image>
<reportElement x="2" y="4" width="119" height="50" />
<imageExpression class="java.lang.String">!CDATA[$P{IMAGE_PATH}]]> </imageExpression>
</image>

Related

Xamarin FontImageSource Glyph not showing up

I am trying to add a font icon using the following code:
<Image>
<Image.Source>
<FontImageSource
FontFamily="{OnPlatform iOS=Ionicons,
Android=ionicons.ttf#}"
Glyph=""
Size="44"
Color="Red" />
</Image.Source>
</Image>
which I found on the official Microsoft Docs. However, the icon doesn't show up on my Android phone, instead I get this (symbol not found placeholder):
You miss a "#" after Android=ionicons.ttf :
<Image>
<Image.Source>
<FontImageSource
FontFamily="{OnPlatform iOS=Ionicons,Android=ionicons.ttf#}"
Glyph=""
Size="44"
Color="Red" />
</Image.Source>
</Image>
I don't think there is a icon font named f37f in the ionicons

How to show a thridprty software installation needed as a info while doing installation

I created an msi using wix installer but for this software to work we need to install another software. SO I want user to show a message as a dialog so that they will be aware of dependency package installation.
Once user click ok in this dialog background installation should progress
For this I created a custom dialog and called form my Produt.wxs, but it is not acting as information radiator but takes control of installation.
How can I spawn a information radiator after showing the welcome screen so once user click ok the dialog should go and next page of licence agreement should show.
Product.wxs
<Product Id="*" Name="Mentor PC" Language="1033" Version="1.0.0.0" Manufacturer="Waygate Technologies" UpgradeCode="303D1BF2-E4C1-44A3-9BBC-85D61CE0F7B7">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Manufacturer="Waygate Technologies" Description="Version 1.0" Comments="(C) 2020 Technologies" Platform="x64"/>
<MajorUpgrade AllowDowngrades="yes" Schedule="afterInstallValidate" />
<MediaTemplate EmbedCab="yes" />
<UIRef Id="SetupDialogUI" />
<Binary Id="bgPic" SourceFile="$(env.installer_icons_dir)/Technologies-dialog.png"/>
SetupDialog.wxs
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<UI Id="SetupDialogUI">
<Property Id="Ok">OKbtn</Property>
<Binary Id="OKbtn" SourceFile="$(env.installer_icons_dir)/OKbtn.bmp"/>
<Dialog Id="SetupDialog" Width="400" Height="300" Title="Waygate Technologies">
<Control Id="background" Type="Bitmap" Text="bgPic" Height="300" Width="400" X="0" Y="0" TabSkip="no" />
<Control Id="introText" Type="Text" X="130" Y="50" Width="350" Height="22" Transparent="yes" Text="{\TahomaHeader}Welcome to Metro App setup." />
<Control Id="explanationText" X="130" Y="100" NoWrap="no" RightAligned="no" Transparent="yes" Type="Text" Width="250" Height="100" Text="{\TahomaNormal}To continue with the setup click on the Install button. If you choose not to install this application, click on the Cancel button to exit." />
<Control Id="installButton" Type="PushButton" Text="[Ok]" Height="40" Width="100" X="170" Y="250" Bitmap="yes">
<Publish Event="EndDialog" Value="Return">1</Publish>
</Control>
</Dialog>
</UI>
<InstallUISequence>
<Show Dialog="SetupDialog" Before="ExecuteAction" />
</InstallUISequence>
Otherthan than "SetupDialog.wxs" I donty have any dialog files, its use default WIX provided
If you have a dependent install requirement then you'll need to chain your installs instead of embedding them. One of the limits of Windows installer is that only one install can be running at any given time in the ExecuteSequence. Also, have you considered your end user running your install silently? How would that be handled with dialogs?
To chain your installs you'll need to build a bootstrapper (setup.exe). Take a look at WiX Burn. Focus on the Chaining part.

How to set background image in MacOS Mojave pkg installer using productbuild?

I'm using productbuild to create a .pkg installer for MacOS Mojave. I've read the schema reference for the Distribution.xml file. I am successfully using this to include a custom welcome. Therefore I know my resource path is being used correctly when I run:
productbuild --resources ./res --sign "$PKG_SIGN_ID" --distribution Distribution.xml foo.pkg
But I can't seem to create a custom background image. I've tried various jpg and png images.
I have read this question and answer and I've tried with and without a en.lproj subdirectory within my resources directory.
My Distribution.xml ends up looking like this:
<?xml version="1.0" encoding="utf-8"?>
<installer-gui-script minSpecVersion="1">
<background file="background.jpg" mime-type="image/jpeg" scaling="tofit"/>
<welcome file="welcome.html"/>
<title>My App</title>
<pkg-ref id="com.foo.myapp"/>
<options customize="never" require-scripts="false"/>
<choices-outline>
<line choice="default">
<line choice="com.foo.myapp"/>
</line>
</choices-outline>
<choice id="default"/>
<choice id="com.foo.myapp" visible="false">
<pkg-ref id="com.foo.myapp"/>
</choice>
<pkg-ref id="com.foo.myapp" version="1.0" onConclusion="none">foo.pkg</pkg-ref>
</installer-gui-script>
Is this no longer possible to do with Mojave?
I found the issue. My problem was I was running in "Dark Mode".
If you want to set the background image of an installer for DarkMode you need to use the tag background-darkAqua otherwise it will never show:
<background-darkAqua file="background.png" mime-type="image/png" scaling="tofit"/>

Cordova config.xml getting override

I set up a basic Cordova project, and whenever I run cordova build, the config.xml file in Windows gets re-written to defaults, I added the following lines to change the icon of my project. When I run the project I can see that my icon have been changed but when I go to the bld/Debug/platforms/windows/config.xml it is in the default format and I cannot see the lines that I have added. So i get the default cordova icon instead. So I cannot deploy the app to the windows store. Very strange. Is anyone got any idea about this.
<platform name="windows">
<icon src="res/icons/windows/logo.png" width="150" height="150" />
<icon src="res/icons/windows/smalllogo.png" width="30" height="30" />
<icon src="res/icons/windows/storelogo.png" width="50" height="50" />
</platform>
Thank you
Do not surround it with platform and try it like this. It should work.
<icon src="res/icons/windows/logo.png" platform="windows8" width="150" height="150" />
<icon src="res/icons/windows/smalllogo.png" platform="windows8" width="30" height="30" />
<icon src="res/icons/windows/storelogo.png" platform="windows8" width="50" height="50" />

WiX write user input into file not working with utf-8 symbols

I have the following problem: In my installer I have a dialog that asks the user to specify a directory and one more folder. The second folder is being written in a property and after that the property is being saved in a file via IniFile element. If the directory contains some utf-8 characters like "標準" they are being displayed as question marks.
The control in the dialog:
<Control Id="ChangeDir" Type="PushButton" X="20" Y="180" Width="56"
Height="17" Text="!(loc.LocationDlgChange)" >
<Publish Property="_BrowseProperty" Value="LOCATION" Order="1">1</Publish>
<Publish Event="SpawnDialog" Value="BrowseDlg" Order="2">1</Publish>
</Control>
And the place where I write it:
<Component Id="CfgLocation" Win64="yes" Guid="SOME_GUID">
<CreateFolder />
<!-- Product download location -->
<IniFile Id="CfgLocation"
Action="addLine"
Directory="product_cfg"
Name="application.cfg"
Key="directory"
Value="[LOCATION]" />
</Component>
You should check the codepage of your package, I suspect that should help you get it working.

Resources