Hi,
I’m trying to save this dot file in pdf format but I can’t.
I find this exception:
Access to the path ‘C:WINDOWSTEMPAspose.Words.67659a34-063c412e-9ec3-cc310b470887.001.png’ is denied
I use versione 4.4.3 of Aspose.Word and 3.6.1.10 of Aspose.Pdf.
With other dot with exception there isn’t.
Any Ideas?
My Code is:
try
{
MemoryStream stream = new MemoryStream();
_doc.Save(stream, SaveFormat.AsposePdf);
stream.Seek(0, SeekOrigin.Begin);
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(stream);
try
{
Aspose.Pdf.License licensePdf = new Aspose.Pdf.License();
licensePdf.SetLicense(GetLicenseStream());
}
catch
{ }
Pdf pdf = new Pdf();
// Make sure the images that were saved by Aspose.Words into Windows temporary
// folder are automatically deleted by Aspose.Pdf when they are no longer needed.
pdf.IsImagesInXmlDeleteNeeded = true;
pdf.BindXML(xmlDoc, null);
pdf.IsTruetypeFontMapCached = false;
pdf.Save(Path.Combine(dir, nome_file));
}
catch (Exception exc)
{
errors = "WordAspose: salva " + exc.Message;
return false;
}
Greatings