+ Start a Discussion
VisualForceVisualForce 

PDF problem

Hi..
    
       I want to display contact details in PDF format. I write a page and its work fine.
 
I am using custom button in Contact detail page for genrate this PDF
 
      Custom Button Properties:
  
         Behavior               - Display in new window
         Display Type        - Detail Page Button 
         Button or Link       - URL https://na6.salesforce.com/apex/ContactPDF
         Show Scrollbars  - True  
         Resizable             - True
My problem is when I click PDF button in Contact detail page, one new blank window is opened along with PDF
 
  How to avoid it..
 
I think I made a mistake in button properties...
 
    Any one guide me..
Sam.arjSam.arj

Probably your username is setup to work in developer mode.

Turn it off and then the page is loaded normally which in fact will be a PDF document. Then it should work fine.


VisualForceVisualForce

Thanks for ur reply Sam

             I already turned off my development mode.. I think I made a mistake in Custom button property..

If u work in PDF generation please send property details of custom button which u get a PDF..

            Thans once again for ur reply..

hisrinuhisrinu
LabelPDFObject NameAccount
NamePDF  
BehaviorDisplay in new windowDisplay TypeDetail Page Button
Content SourceVisualforce Page  
Height (in pixels)600Visualforce PagePDF_Account
Width (in pixels)  Show Address BarNot Checked
Window PositionNo PreferenceShow ScrollbarsChecked
ResizeableCheckedShow ToolbarsNot Checked
  Show Menu BarNot Checked
Description
  Show Status BarNot Checked

Hi,

  Please check the above settings, I am using as it is, it is working fine for me.
VisualForceVisualForce

Thanks for ur reply Srini..

 

         Still I am getting blank page... When I hit the button I need the page will be retained and PDF is opened..

How it is possible..

hisrinuhisrinu
Hi,

 For me its opening in another page only, there is no problem.
 Check your settings once again.
VisualForceVisualForce

Thanks for ur reply..

         For me also its opening in another window.. But my problem is one blank white window also opened extra.. How to avoid this extra window...

           When I hit the button PDF opened in new window and one blank page also opened.... Are u get any blank window..