Help me How to save preview to file?

Hello,
I can save report from preview window by clicking on Save button and save whole preview into file. But I don't know how this make programmatically. Access violation exception is raised when I call method frxReport1.Preview.PreviewPages.SaveToFile(SaveDialogExport.FileName);
Please help me.
I can save report from preview window by clicking on Save button and save whole preview into file. But I don't know how this make programmatically. Access violation exception is raised when I call method frxReport1.Preview.PreviewPages.SaveToFile(SaveDialogExport.FileName);
Please help me.
Comments