Update gestione path relativo x tmp...
This commit is contained in:
@@ -97,13 +97,13 @@ namespace CMS_SC.WebUserControls
|
||||
byte[] bytes = localReport.Render("PDF", null, out mimeType, out encoding, out extension, out streamIds, out warnings);
|
||||
// se è un percorso virtuale faccio mapPath...
|
||||
string FilePath = "";
|
||||
if (outFilePath.IndexOf("/") < 0)
|
||||
if (Path.IsPathRooted(outFilePath))
|
||||
{
|
||||
FilePath = Server.MapPath(outFilePath);
|
||||
FilePath = outFilePath;
|
||||
}
|
||||
else
|
||||
{
|
||||
FilePath = outFilePath;
|
||||
FilePath = Server.MapPath(outFilePath);
|
||||
}
|
||||
using (FileStream fs = new FileStream(FilePath, FileMode.Create))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user