Hi Folks -
I have the below code in a Codeunit
Variable declaration
FileName Text
Instr Instream
Downloaded Boolean
Reportoutput BLOB
FileName := 'C:\temp\Salesquote.PDF';
ReportOutput.CREATEINSTREAM(Instr);
Downloaded := DOWNLOADFROMSTREAM(Instr,",'','',FileName);
My question is in the DOWNLOADFROMSTREAM function I have assigned it to Downloaded a Boolean variable for the return value and when I run my codeunit it prompts me the file Salesquote.PDF and prompts me to Save, Open or Cancel.
Is there any way I can save the content of the Reportoutput Blob field content directly to C:\temp\salesquote.pdf without getting a prompt for my input.
Any help is highly appreciated.
Thanks
RJ.
I have the below code in a Codeunit
Variable declaration
FileName Text
Instr Instream
Downloaded Boolean
Reportoutput BLOB
FileName := 'C:\temp\Salesquote.PDF';
ReportOutput.CREATEINSTREAM(Instr);
Downloaded := DOWNLOADFROMSTREAM(Instr,",'','',FileName);
My question is in the DOWNLOADFROMSTREAM function I have assigned it to Downloaded a Boolean variable for the return value and when I run my codeunit it prompts me the file Salesquote.PDF and prompts me to Save, Open or Cancel.
Is there any way I can save the content of the Reportoutput Blob field content directly to C:\temp\salesquote.pdf without getting a prompt for my input.
Any help is highly appreciated.
Thanks
RJ.