How to send a PDF of report to predefined email?
Posted: Tue Dec 11, 2012 8:14 pm
Hi!
I am showing a report with this code (don't bother about language, it is Vulcan.NET):
LOCAL ReportDLLName AS STRING
ReportDLLName := cReportsPath+"\"+reportID+".dll"
IF !file(ReportDLLName)
ErrorBox{, "Sorry, report "+reportID+" is not yet prepared!"}:Show()
ELSE
oReport := StiReport{}
oReport := StiReport.GetReportFromAssembly(ReportDLLName, true)
oReport:RegData("Podatki", dDataSet)
oReport:Show()
ENDIF
Now, when user clicks option to send report in PDF format, I want to automatically fill email adress with predefined one, so user will not need to search between contacts or manually type in adress. How can I do this?
Regards,
Sandi
I am showing a report with this code (don't bother about language, it is Vulcan.NET):
LOCAL ReportDLLName AS STRING
ReportDLLName := cReportsPath+"\"+reportID+".dll"
IF !file(ReportDLLName)
ErrorBox{, "Sorry, report "+reportID+" is not yet prepared!"}:Show()
ELSE
oReport := StiReport{}
oReport := StiReport.GetReportFromAssembly(ReportDLLName, true)
oReport:RegData("Podatki", dDataSet)
oReport:Show()
ENDIF
Now, when user clicks option to send report in PDF format, I want to automatically fill email adress with predefined one, so user will not need to search between contacts or manually type in adress. How can I do this?
Regards,
Sandi