HTML Equivalent of SendFileToBrowser
In a Data Transform we use the function SendFileToBrowser to send the generated PDF to a new browser window. In case the PDF can't be generated due to some error, I would like to send an explaining HTML-errorpage to the browser window.
If I try to use the SendFileToBrowser with an GetByteArrayFromString("<html>....</html>") as input, I get a sentence of nonsense on screen.
Is there an equivalent of the SendFileToBrowser function to get a hardcoded html into the new browser window?