Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

DOWNLOADFROMSTREAM Function Question

$
0
0
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.


Viewing all articles
Browse latest Browse all 10032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>