Jump to content

Recommended Posts

Posted

I am calling the report as below. But I would like the report to be displayed in a new browser tab

  EngineOptions.SilentMode := True;
  EngineOptions.EnableThreadSafe := True;
  EngineOptions.DestroyForms := False;
  EngineOptions.UseGlobalDataSetList := False;

  PrintOptions.ShowDialog := False;
  ShowProgress := False;
  PreviewOptions.AllowEdit := False;

  frxPDFExport1.Background := True;
  frxPDFExport1.ShowProgress := False;
  frxPDFExport1.ShowDialog := False;

  frxPDFExport1.FileName := UniServerModule.NewCacheFileUrl(False, 'pdf', 'Orçamento-'
  +UniMainModule.qOrcamento.FieldByName('ORCAMENTO_ID').AsString, '', AUrl);
  frxPDFExport1.DefaultPath := '';

  PrepareReport;
  Export(frxPDFExport1);
Posted


UniSession.AddJS('var newWin = window.open("'+AUrl+'"); '+
'if(!newWin || newWin.closed || typeof newWin.closed==''undefined'') '+
'{ alert(''Atenção, os pop-ups para esta página estão bloqueados!'');} ');

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...