It works great in development using localhost, but when I try to run it in secure https mode, the PDF that is generated is that of my login page. I am using prince.SetHttpUser and prince.SetHttpPassword, but it still doesn't work. How can I generate the PDF?
Here is my code.
Prince prince = new Prince(@"C:\Program Files (x86)\Prince\Engine\bin\prince.exe");
prince.SetLog("[SERVER PATH]\\Prince\\princelog.log");
prince.SetHttpUser(SessionGlobal.UserName);
prince.SetHttpPassword(opass);
Response.ContentType = "application/pdf";
Response.AddHeader("content-disposition", "attachment; filename=\"woundrep2.pdf\"");
prince.AddStyleSheet("[SERVER PATH]\\secured\\css\\styles.css");
prince.AddStyleSheet("[SERVER PATH]\\secured\\css\\landscape.css");
prince.Convert(inFile, Response.OutputStream);
Note that if I use Prince prince = new Prince(); it doesn't work at all.
Here is my code.
Prince prince = new Prince(@"C:\Program Files (x86)\Prince\Engine\bin\prince.exe");
prince.SetLog("[SERVER PATH]\\Prince\\princelog.log");
prince.SetHttpUser(SessionGlobal.UserName);
prince.SetHttpPassword(opass);
Response.ContentType = "application/pdf";
Response.AddHeader("content-disposition", "attachment; filename=\"woundrep2.pdf\"");
prince.AddStyleSheet("[SERVER PATH]\\secured\\css\\styles.css");
prince.AddStyleSheet("[SERVER PATH]\\secured\\css\\landscape.css");
prince.Convert(inFile, Response.OutputStream);
Note that if I use Prince prince = new Prince(); it doesn't work at all.