- Code: Select all
//To open this pdf document in client browser.
newDoc.SaveToHttpResponse("sample.pdf",HttpContext.Current.Response, HttpReadType.Open);
The 2nd argument (HttpContext.Current.Response) - there is no definition for "Current" in HttpContextBase. What is the correct argument to use here?
I am working around it now by saving a temp PDF file to a drive, then opening that temp file - but I'd rather do everything in memory.