from within TIWCGJQButton this fails with ContentStream already exists.
- Code: Select all
procedure TformPortalCensus.IWImageButtonDownLoadCensusCSVJQEventsClick(Sender: TObject; AParams: TStringList);
Var
MemoryStream : TMemoryStream;
begin
code for populatestream deleted here
WebApplication.SendStream(MemoryStream, True, '', MakeCensusFileName(PlanId, LoadedCensusForYear,''));
end;
when this is called from within a TMS Button it works as expected WebApplication.SendStream(MemoryStream, True, '', MakeCensusFileName(PlanId, LoadedCensusForYear,''));
How Can this be fixed ?
Jan