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
Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should. An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
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…