Hi.. am new to Vb.Net... Problem is, I have an exisiting report that I wish to call programatically, pass it two parameters and then email. Can someone please help ???
PS - Not for school project or any other nefarious reason!
//If ADO.net dataset is dataSource,
myReport.setDataSource(dataset)
//as for your parameters, you wnat just discrete values? I hope so, I haven't actually done this but apparently use can use formulas and it's much easier. Write the "formula" in the editor using crystal syntax then in the code write:
Hi..I have been scouting around to find something to help me and came across the following if it is of some help to you....
Example
This example demonstrates how to use to set some of the properties of the MicrosoftMailDestinationOptions class.
[Visual Basic]
Public Sub ExportToMSMail(ByVal toList As String, ByVal subject As String, ByVal message As String, _
ByVal ccList As String, ByVal user As String, ByVal password As String)
' Declare variables and retrieve the export options.
Dim pdfOpts As PdfRtfWordFormatOptions = _
ExportOptions.CreatePdfRtfWordFormatOptions()
Dim mailOpts As MicrosoftMailDestinationOptions = _
ExportOptions.CreateMicrosoftMailDestinationOptions()
Dim exportOpts As ExportOptions = New ExportOptions
' Set the PDF format options.
pdfOpts.UsePageRange = False
exportOpts.ExportFormatOptions = pdfOpts
' Set the mail options.
mailOpts.MailCCList = ccList
mailOpts.MailMessage = message
mailOpts.MailSubject = subject
mailOpts.MailToList = toList
mailOpts.Password = password
mailOpts.UserName = user
exportOpts.ExportDestinationOptions = mailOpts
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.