I've had to update a program someone else wrote in vb.net 2003 to vb.net 2005. It writes a pdf to a folder but won't release the file until I close the program. Here is the code below. I'm new to .net so please type slowly. Thanks.
Private Sub CreatePDF()
'Prints the airbill report
Dim ReportName As New AirbillReport
Dim myexportoptions As CrystalDecisions.Shared.ExportOptions
Dim mydiskfiledestinationoptions As CrystalDecisions.Shared.DiskFileDestinationOptions
Dim myexportfile As String
myexportfile = "C:\Documents and Settings\mikeb\My Documents\Visual Studio 2005\Projects\AnatomicalServicesProgram\Airbills\" & txtAirbillNumber.Text & ".pdf"
mydiskfiledestinationoptions = New CrystalDecisions.Shared.DiskFileDestinationOptions()
mydiskfiledestinationoptions.DiskFileName = myexportfile
myexportoptions = ReportName.ExportOptions
.DestinationOptions = mydiskfiledestinationoptions
.ExportDestinationType = CrystalDecisions.[Shared].ExportDestinationType.DiskFile
.ExportFormatType = CrystalDecisions.[Shared].ExportFormatType.PortableDocFormat
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place!
Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
It’s quite interesting for me as I worked with Excel using vb.net for some time.
Here are some topics which I know want to share with others whom this might help.
First of all if you are working with Excel then you need to Download the Following
The Email Laundry PDF encryption service allows companies to send confidential encrypted emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…