<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">I have followed the example on the web on how to create a PDF Report and download it.</div><div class=""><br class=""></div><div class=""><div class=""> dim rep1 as VReport</div><div class=""> rep1 = vlProject.MakeNewReport( "CEUCertificateManu", Session.sesWebDB.gsWConnectionStr, lsSql)</div><div class=""> </div><div class=""> dim spdfData as String = rep1.PrintToBuffer(EVReportPrintType.kToPDF, 1)</div><div class=""> </div><div class=""> rep1.PrintToDisk( lfiSavePDF, EVReportPrintType.kToPDF)</div><div class=""> </div><div class=""> mPDF = New WebFile</div><div class=""> mPDF.MIMEType = "application/pdf"</div><div class=""> mPDF.Filename = "report.pdf"</div><div class=""> mPDF.ForceDownload = False</div><div class=""> mPDF.Data = spdfData</div><div class=""> </div><div class=""> vlProject.Close</div><div class=""> </div><div class=""> ShowURL(mPDF.URL, True)</div><div class=""><br class=""></div><div class="">mPDF is a Property of the form</div><div class=""><br class=""></div><div class="">Then in another Method:</div><div class=""><br class=""></div><div class=""><div class=""> dim file as emailAttachment</div><div class=""> </div><div class=""> file = new emailAttachment</div><div class=""> file.LoadFromFile cnt1.mPDF.Download <————————-No matter what I Use I get an error. Parameter not compatable.</div><div class=""> Msg.Attachments.Append file</div><div class=""> </div></div><div class="">No matter what property of mPDF I use I get an error. </div><div apple-content-edited="true" class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"></div></div></div></div></div><div class="">
<div style="color: rgb(0, 0, 0); font-family: Georgia; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: 0px;" class=""><div style="margin: 0px; font-size: 12px; font-family: Helvetica;" class=""><br class="Apple-interchange-newline"><br class=""></div><div style="margin: 0px; font-size: 12px; font-family: Helvetica; min-height: 14px;" class=""><span style="text-align: -webkit-auto;" class="">--</span><span style="text-align: -webkit-auto; font-family: 'Brush Script MT'; font-size: 26px;" class="">Richard S Albrecht</span><span style="text-align: -webkit-auto;" class="">--</span></div><div style="margin: 0px; font-size: 12px; font-family: Helvetica;" class="">2019 Salem Rd</div><div style="margin: 0px; font-size: 12px; font-family: Helvetica;" class="">Elgin, IL 60123</div><div style="margin: 0px; font-size: 12px; font-family: Helvetica;" class="">847-652-3563</div><div style="margin: 0px; font-size: 12px; font-family: Helvetica; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-size: 12px; font-family: Helvetica;" class="">Skype: HawkCode</div><div style="margin: 0px; font-size: 12px; font-family: Helvetica;" class=""><br class=""></div><div style="margin: 0px; font-size: 12px; font-family: Helvetica;" class=""><br class=""></div></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline" style="color: rgb(0, 0, 0); font-family: Georgia; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class="Apple-interchange-newline" style="color: rgb(0, 0, 0); font-family: Georgia; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
</div>
<br class=""></body></html>