S is my stream variable.
I have successfully converted it into doc format. Now I am trying for pdf one.
Content Type: "application/pdf" doesn't work.
Please give me a solution.
s = ac.ExportApplicationResultDocument(templatePath, spiderDiagram, bestDiagram, worstDiagram,this._positionsNormalCaseResults, this._positionsWorstCaseResults,this._normalCaseRequiredTrainings, this._worstCaseRequiredTrainings,this._assessedLevel, this._justification, this._normalCaseResultingDecision,this._worstCaseResultingDecision,(InternalStatus)application.IdCurrentApplicationStatus.Value,applicant.FirstName,applicant.LastName,string.Format(Resources.TextResources.ResultPageGlobalResultEADSCorpId, applicant.EADSPersonalID), worstCaseTableImage, bestCaseTableImage, this._assessedDate);Response.Clear();Response.AddHeader("Content-Disposition", "attachment; filename=Result.docx");Response.ContentType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";s.CopyTo(Response.OutputStream);Response.End();
