Quickest Print Friendly in Oracle APEX
Video Tutorial Link: https://youtu.be/_Jua7CGfOWc
Classic Reports print code
-------------------------------------
//// Collapse Left Navigation Bar If It Was Expanded ////
var navCollapsed = 0;
if ($("body").hasClass("js-navExpanded")) {
$("#t_Button_navControl").click();
navCollapsed = 1;
};
setTimeout(3000);
//////// Hide ////////
//Hide Navigation Bar List
$("#t_Header").hide();
//Hide Navigation Menu
$("#t_Body_nav").hide();
//Hide Breadcrumb
$("#t_Body_title").hide();
//Hide Content Offset
$("#t_Body_content_offset").hide();
//Hide Report Column Edit Link
$(".apex-edit-page").hide();
//Hide Report Download Links
$(".t-Report-links").hide();
//Hide Buttons
$(".t-Button").hide();
//Hide Footer
$(".t-Footer").hide();
//////// Browser Print ////////
window.print();
//////// Show ////////
//Show Navigation Bar List
$("#t_Header").show();
//Show Navigation Menu
$("#t_Body_nav").show();
//Show Breadcrumb
$("#t_Body_title").show();
//Show Content Offset
$("#t_Body_content_offset").show();
//Show Report Column Edit Link
$(".apex-edit-page").show();
//Show Report Download Links
$(".t-Report-links").show();
//Show Buttons
$(".t-Button").show();
//Show Footer
$(".t-Footer").show();
//// Expand Left Navigation Bar If It Was Colapsed ////
if ( navCollapsed = 1 ) {
$("#t_Button_navControl").click();
}
Interactive Reports print code
----------------------------------------------
//// Collapse Left Navigation Bar If It Was Expanded ////
var navCollapsed = 0;
if ($("body").hasClass("js-navExpanded")) {
$("#t_Button_navControl").click();
navCollapsed = 1;
};
setTimeout(3000);
//////// Hide ////////
//Hide Navigation Bar List
$("#t_Header").hide();
//Hide Navigation Menu
$("#t_Body_nav").hide();
//Hide Breadcrumb
$("#t_Body_title").hide();
//Hide Content Offset
$("#t_Body_content_offset").hide();
//Hide Interactive Report Search Bar
$(".a-IRR-toolbar").hide();
//Hide Report Link Column Header
$("#LINK").hide();
//Hide Report Link Column Elements
$('td[headers="LINK"]').hide();
//Hide Buttons
$(".t-Button").hide();
//Hide Footer
$(".t-Footer").hide();
//////// Browser Print ////////
window.print();
//////// Show ////////
//Show Navigation Bar List
$("#t_Header").show();
//Show Navigation Menu
$("#t_Body_nav").show();
//Show Breadcrumb
$("#t_Body_title").show();
//Show Content Offset
$("#t_Body_content_offset").show();
//Show Interactive Report Search Bar
$(".a-IRR-toolbar").show();
//Show Report Link Column Header
$("#LINK").show();
//Show Report Link Column Elements
$('td[headers="LINK"]').show();
//Show Buttons
$(".t-Button").show();
//Show Footer
$(".t-Footer").show();
//// Expand Left Navigation Bar If It Was Colapsed ////
if ( navCollapsed = 1 ) {
$("#t_Button_navControl").click();
}
Form Print code
----------------------------------
//// Collapse Left Navigation Bar If It Was Expanded ////
var navCollapsed = 0;
if ($("body").hasClass("js-navExpanded")) {
$("#t_Button_navControl").click();
navCollapsed = 1;
};
setTimeout(3000);
//////// Hide ////////
//Hide Navigation Bar List
$("#t_Header").hide();
//Hide Navigation Menu
$("#t_Body_nav").hide();
//Hide Breadcrumb
$("#t_Body_title").hide();
//Hide Content Offset
$("#t_Body_content_offset").hide();
//Hide Buttons
$(".t-Button").hide();
//Hide Footer
$(".t-Footer").hide();
////Print Preview Call////
window.print();
//////// Show ////////
//Show Navigation Bar List
$("#t_Header").show();
//Show Navigation Menu
$("#t_Body_nav").show();
//Show Breadcrumb
$("#t_Body_title").show();
//Show Content Offset
$("#t_Body_content_offset").show();
//Show Buttons
$(".t-Button").show();
//Show Footer
$(".t-Footer").show();
//// Expand Left Navigation Bar If It Was Colapsed ////
if ( navCollapsed = 1 ) {
$("#t_Button_navControl").click();
}
|
Nice and solution of very common problem. Thanks
ReplyDeleteThanks a lot
DeleteShahbaz Ali
I wish you the very best of blessings ....thanks alot
ReplyDeleteThanks a lot
DeleteMany THANKS for sharing this code... it is really greate efforts and very helpfull..
ReplyDeleteThanks
DeleteNasser Shabibi
u done a good job.. jazak allah khayer..
ReplyDeleteThanks for sharing the js
ReplyDeleteMost welcome
DeleteEffective Solutions.
ReplyDeleteEffective Solutions.
ReplyDeletebut i cant see Print Preview
thanck you
ReplyDeleteSo so Excellent Brother
ReplyDeleteawesome feature. If possible please upload the code for interactive grid report also.
ReplyDeleteWhat a fantabulous post this has been. Never seen this kind of useful post. I am grateful to you and expect more number of posts like these. Thank you very much. how much are 3d printers
ReplyDelete