Well, for last two months I’ve been exporting Excel worksheets to PDF and this morning my code just stopped doing that. Every other functionality of my application works great but when I run my “Excel to PDF” part it just freezes whole application. After this I’ve tried to debug it, but again it freezes it without showing any sign of what is the problem. Here is my code for that export:
xlSheet.ExportAsFixedFormat(XlFixedFormatType.xlTypePDF, path + file_name, XlFixedFormatQuality.xlQualityStandard, true, false, System.Type.Missing, System.Type.Missing, false, System.Type.Missing);
Any idea why is this happening or another way for export of excel2pdf?!
My Excel/VBE environment sometimes messes up with memory: the most trivial code doesn’t work as expected, erratic behaviour etc. Usually restarting a computer helps.