Hi Tomas,
Correct, it has nothing to do with export to Stream.
When exporting Crystal first attempts to write the file to the destination folder and then delete it to see if we have full read/write permissions. If the application does not then you can get this error. Or the folder they are exporting to does not exist.
Have the user right click on your EXE and select Run As Administrator and see if that works.
You can add something like this to check also, could be the file exists or is locked by some process:
try
{
if (File.Exists(MyRptName))
{
File.Delete(MyRptName);
}
}
catch (Exception ex)
{
MessageTextBox.Text = "ERROR: " + ex.Message;
}
Don