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
UsamaRasheedUsamaRasheed 

Visualforce Render as Excel Probem

Hi

 

I am having issue when visualforce page is rendered as excel i.e. when page is rendered as excel new page remain blank.I tried to place link or button on the rendered page but link or button are placed at excel rather then on the page.Any solution for it!

 

 

Thanks

 

Usama

Prajapati.LakhanPrajapati.Lakhan

Hi, Instead of opening visualforce page (contentType="application/excel") in "_self" try to open it with "_blank" target by specifying height and width lets say 200, 200.

 

Thanks,

Lakhan

nagalakshminagalakshmi

Hi, 

 

 

Use this code. i think it will be help ful to u.. It exports the values of object in to excel sheet.

 

apex:page controller="controller name" contenttype="application/vnd.ms-excel">

 

Thanks,

Lakshmi.

UsamaRasheedUsamaRasheed

Hi Lakhan,

 

Could you please give syntax for opening this pupup window in apex?

 

Thanks for help

Usama

UsamaRasheedUsamaRasheed

Hi Lakshmi.

 

The issue is that I have added export button at the visualforce page and at this button I am opening another visualforce page which is render as excel.But when the excel page is blank and I can place any link on render as excel page so that users can go back to original page

 

Thanks

Usama