Problem sending PDF via MS Outlook

Hi

I'm trying to send a report exported to pdf via MS Outlook.

Unfortunately I get access violation in TfrxMailExport.Start function despite setting ExportFilter.DefaultPath.

When it is set to application folder exception raises here

  if FExportFilter.DefaultPath <> '' then

  begin

   FDefaultIOTransport.BasePath := FExportFilter.DefaultPath; <= here

   FExportFilter.FileName := f;

  end

  else

  begin

   FDefaultIOTransport.CreateTempContainer; <= or here (when DefaultPath is empty)

   FExportFilter.FileName := FDefaultIOTransport.BasePath + PathDelim + f;

  end;


Apparently I'm missing something.

The application is quite old (about six years) and it used to work with Fast Report 6


TIA

Marcin

Leave a Comment