Hi,
That does not make sense --- even though it is not unusual to run into strange problems when you try to request a Url back to your own website. You can try to use the .NET's own WebRequest class to request the same Url multiple times and see if you get the same problem.
Alternatively, it might be easier for you to render multiple views into a string and then combine them together as a ContentResult. You action method would be something like this:
Code: C#
[RenderAsPDF()]
public ActionResult Print(Guid id)
{
//Render both view as string
string s1 = RenderViewAsString<View1>(view1_path, view1_model);
string s2 = RenderViewAsString<View2>(view2_path, view2_model);
//Combine them as a single ContentResult
ContentResult result = new ContentResult();
result.Content = s1 + s2;
result.ContentType = "text/html";
}
This way the final result from the ContentResult will be intercepted by MVCToPDF and convert to PDF for you.
Note that RenderViewAsString is not a system function. It's a function to be implemented by you. How to convert a MVC view into a string is a very frequently asked question online so you might be able to find many different implementations for this function. Here is one of them:
http://stackoverflow.com/questions/483091/render-a-view-as-a-stringHope this helps. Please feel free to let us know if you still have any more questions.
Thanks!