0

I currently have a partial view with the following line to return a pdf file:

<embed src="@Url.Action( "GenerateBill", "Bill" )" width="100%" height="600" />

However, instead of retrieve the pdf this way, I want to save the pdf into a view model and return it. so the code can be like this:

<embed src="@Model.CurrentBillData" type="application/pdf" width="100%" height="600" />

But I am getting a blank page back. Can someone please tell me what I am missing?

Kyle
  • 406
  • 7
  • 20

0 Answers0