Page Routing Related

Vote:
 

I have this WishlistPageController and It has its own Default View.

I have created another view for Wishlist to be rendered/printed as a PDF. For this I have created an action method(WishlistprintPDF) inside WishlistPageController.

Now I need to call this WishlistprintPDF Action method from by DefaultView.

I have tried used Ajax call -> It returns a bytestream, which i currently don't prefer

What I need is a straight forward url base route to the WishlistprintPDF Action method from my defaultView.

Any help is much appreciated!

#304180
Jun 27, 2023 18:26
Vote:
 

Hi Ram,

Hae you seen this old post that discusses rendering any page as a pdf?

Paul

#304220
Jun 28, 2023 8:15
Vote:
 

Thanks Paul for your input!

We fixed this by having a separate CMS page with required layout for the PDF.

We had used NRECO PDF Generator library for our purpose, which turns view into a PDF.

#304681
Jul 05, 2023 9:25
Vote:
 

Given browsers have the ability to print to PDF, you could just create a print stylesheet instead.

#305923
Jul 30, 2023 21:02
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.