I have a controller and Action set up the receive a object and display a table based on that model. Now I want to create a PDF based on the view. The way we create PDF's is to pass it a url and it builds an image from that.
So to get my table view I would call something like
return View("HoldingFeeSearchPrint", _model);
but the code for my PDF dll uses something like this that takes a string URI:
//the Doc is an Object that will turn into PDF
theDoc.AddImageUrl(reportUrl); // this takes a string url
is there someway that I can turn the first line , where I am directly passing a model into a string version of my model?
note the model is an IEnumberable
of a pretty big object ,