Quantcast
Channel: Aspose.Email Product Family
Viewing all articles
Browse latest Browse all 1367

No Calendar Events came when converted an ICS file to pdf.

$
0
0
Hi,

Please find the attached ics file in the zip archive. I found the below code in your site to convert an .ICS file pdf.

var appointment = Appointment.Load(converterSettings.InputFileLocation);
            var outlookMsg = new MailMessage();
            outlookMsg.AddAlternateView(appointment.RequestApointment());

            var mhtmlMemoryStream = new MemoryStream();

            outlookMsg.Save(mhtmlMemoryStream, SaveOptions.DefaultMhtml);
            mhtmlMemoryStream.Flush();
            var wordDocument = new Document(mhtmlMemoryStream);

            var pdfMemoryStream = new MemoryStream();
            wordDocument.Save(pdfMemoryStream, SaveFormat.Pdf);
            pdfMemoryStream.Flush();
            _impersonatedFile.SaveFileToDestination(converterSettings.OutputFileLocation, pdfMemoryStream.ToArray());
            pdfMemoryStream.Close();
            mhtmlMemoryStream.Close();
But No events were came when I converted to pdf. If possible you guys can convert for me a pdf file and send me the result. Since I am evaluating the Aspose we may take a decision on seeing the converted results.

Thanks & Regards,
N.Murali Krishna.

Viewing all articles
Browse latest Browse all 1367

Trending Articles