This topic is locked

PDFForm

11/27/2023 4:54:00 AM
ASPRunner.NET General questions
S
sevy1971 authorDevClub member

Hi,

I'm just playing around with the PdfForms template.

Unfortunately the function
CommonFunctions.showFormInBrowser("FormulaireTransfert", new XVar("id_int", record["id_int"]), "temp_filename.pdf");

doesn't display the PDF file but only the content in the browser like "%PDF-1.3 %���� 1 0 obj << /Matrix [1 0 0 1 0 0] /Subtype /Form /Filter /FlateDecode /Length 84 /Resources << /Font << /Helv 2 0 R >> /ProcSet [/PDF /Text /ImageB /ImageC /ImageI] >> /FormType 1 /BBox [0 0 171.7 18] /Type /XObject >> stream x���Pp�uV(T0A3K=s �P�����`�E� N! ��9e ��zf !i F &zƆ !) �e�Ś!Y �! � �@�W] endstream endobj 3 0 obj << /Matrix [1 0 0 1 0 0] /Subtype /Form /Filter /FlateDecode /Length 109 /Resources << /Font << /Helv 2 0 R >> /ProcSet [/PDF /Text /ImageB /ImageC /ImageI] >> /FormType 1 /BBox [0 0 334.1 18] /Type /XObject >> stream x��M �0�̲n�1���t!> /ProcSet [/PDF /Text /ImageB /ImageC /ImageI] >> /FormType 1 /BBox [0 0 335.65 18" .........

What I missed?

Thanks for any help
Yves

admin 11/27/2023

It looks like the PDF is generated but something is getting in the way when ASPRunner.NET is trying to display it, maybe some unnesassary code in events. Hard to tell without seeing the whole project.

D
david powell 3/26/2024

Hi Yves,

I have exactly the same issue as you experienced.

Did you ever find a solution?

David