function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
devendra dhakadevendra dhaka 

print the record using custom button

I have to create a custom button to print the record.

 

Any suggestions ??

 

TheIntegratorTheIntegrator

You can use visualforce, you can get started here

http://wiki.developerforce.com/page/Visualforce_Extended_Print_Preview

Navatar_DbSupNavatar_DbSup

Hi,

 

You can create a custom button for print the current page.

 

Follow the below steps to create custom button on account object

1.            Setup->customize->account->Buttons and Links ->click on new

2.            Enter the label and name of the button

3.            Select Detail Page Button as display type

4.            Select onclick JavaScript as Content Source

5.            Write the following code in blank space

6.            Save the button

7.            Add the button on account page layout.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

 

 

 

vishal@forcevishal@force

By print, you mean you want to print the detail page of a record?

 

You can write this script inside your custom button (make it  javascript button).

 

window.print();

 

It prints the whole page though.

 

Let me know if you are looking for something like this.

devendra dhakadevendra dhaka

I have already tried the javaScript method using WINDOW.PRINT()

 

But i want to provide functionality as the SF does. I have to use this in customer portal