Posts

Showing posts from August 27, 2015

Opne a VF page in Print Mode using a custom Button

Step 1: Create a VF page  <apex:page standardController="Contact" sidebar="false" showHeader="false">   <apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" />      <style>         body{ font-size:14px;}                  .lblPrint{                      width:49%;             float:left;             border:1px solid White;             height:260px;         }     </style>          <apex:form > <div style='margin-left:5px;display:block;'> <div class='lblPrint'> <div class='MainPrint' style="padding-left:20px;padding-top:15px;" >                  <b> <apex:outputText value="{!UPPER(Contact.Salutation)}" style="font-size:14px;"/>&nbsp; <apex:outputText value="{!UPPER(Contact.Name)}" style="font-size:14px;"></apex:outpu