cancel
Showing results for 
Search instead for 
Did you mean: 

MVC-Exl File download from view

former_member191111
Participant
0 Kudos

Hi,

I am trying to download Table view content from MVC view.

I am getting error in following statement that :

Mresponse->set_header_field( name = 'content-type' value = 'APPLICATION/MSEXCEL' ).

It's not recognizing Mresponse field .

Looking forward for any clue .

Thanks & Regards,

Sachin

Accepted Solutions (0)

Answers (2)

Answers (2)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I'm not sure where you got the attribute name Mresponse. From within a controller you can access the response object via the attribute RESPONSE. I guess I am not suprised that the compiler doesn't recognize Mresponse unless you declare something with that name.

Former Member
0 Kudos

Hi Sachin,

Go through the links,

/people/thomas.jung3/blog/2004/09/02/creating-a-bsp-extension-for-downloading-a-table

/people/thomas.jung3/blog/2004/08/09/bsp-download-to-excel-in-unicode-format

/people/mark.finnern/blog/2003/09/23/bsp-programming-handling-of-non-html-documents

Regards,

Azaz Ali.