Telegram_2021-03-03T16

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2021 > 03 > 03 >

Telegram_2021-03-03T16

Telegram link

 

2021-03-03T16:44:46

 

Hi all. Is there a way to open a new window to embed a pdf file using sendstream?

 

st := TMemoryStream.Create;     st.LoadFromFile(strFilePDF);     WebApplication.SendStream(st,false,'application/pdf','Receipt');

 

When I do this the file opens inside the current tab and loose the website template and navigation capabilities.

 


 

Telegram link

 

2021-03-03T16:50:28

 

I think you will need to use a new window and an IOHandler to handle the link. Probably easier to use a session temp file and window. I think we have a demo showing new window for PDF

 


 

Telegram link

 

2021-03-03T16:57:34

 

Alexandre might know an easier way