How to insert company logo, name of user, address on header

Posted by tanagorns@progress.in.th on 22-Apr-2015 23:50

Hi there!!!

            In Rollbase Private Cloud. How to insert company logo, name of user, address on popup print report? (see picture)



Thanks for answer

Best regards

BOY!!

Posted by Orchid Corpin on 23-Apr-2015 10:51

Hi Boy,

You can add a code in the list page, but this code only works in print preview.

<div id="customLogo"> 
	<!--Company logo, in this sample I save the logo in the hosted file-->
		<img src ="{!#HOSTED_FILE.135984}" />
		<br />
	<!--Below is the user name token-->
		<span> {!#CURR_USER.name#text} </span>
</div>

<!--Hide the logo in the main page-->
<style>
#customLogo {
	display: none;
	position: absolute;
	top: 0;
	text-align: center;
	width: 100%;
}
</style>
<!--Show the logo in print preview only-->
<style media="print">
#customLogo {
	display: block;
}
</style>

ScreenShot:

Hope this may help.

Regards,

Orchid

All Replies

Posted by Orchid Corpin on 23-Apr-2015 10:51

Hi Boy,

You can add a code in the list page, but this code only works in print preview.

<div id="customLogo"> 
	<!--Company logo, in this sample I save the logo in the hosted file-->
		<img src ="{!#HOSTED_FILE.135984}" />
		<br />
	<!--Below is the user name token-->
		<span> {!#CURR_USER.name#text} </span>
</div>

<!--Hide the logo in the main page-->
<style>
#customLogo {
	display: none;
	position: absolute;
	top: 0;
	text-align: center;
	width: 100%;
}
</style>
<!--Show the logo in print preview only-->
<style media="print">
#customLogo {
	display: block;
}
</style>

ScreenShot:

Hope this may help.

Regards,

Orchid

This thread is closed