I'm putting together my custom module. It uses the multiview to successfully handle the grid view and the form entry. I now would like to setup to have my report viewed as a pdf file. The following code works correctly in creating and streaming the pdf content to the client.
However, the user cannot return back to the screen that called the view. Instead they are return to the home page. I do not know how best to handle this;
1) Is it possible to display the pdf within view within the module? (Is this an IFrame solution?)
2) is it easier to open a second window for the pdf display? If so, a code sample or reference would be helpful.
3) I wold prefer to not have to save the pdf document to disk and just stream the data as needed.
Any ideas and suggestions wold be helpful as I pretty stuck at this point.
Response.ContentType =
"Application/pdf"
Response.AddHeader(
"content-disposition", "inline;filename=report.pdf")'Write the file directly to the HTTP output stream.
Response.BinaryWrite(xc.Convert(strResult))
Response.End()