Click here to Skip to main content
15,911,139 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to Import C++ Dll into VB.NET Code ? Pin
Amarelia12-Oct-04 19:25
Amarelia12-Oct-04 19:25 
Generalregistry monitor in vb.net Pin
addicktz12-Oct-04 19:20
addicktz12-Oct-04 19:20 
GeneralRe: registry monitor in vb.net Pin
Gavin Jeffrey12-Oct-04 23:53
Gavin Jeffrey12-Oct-04 23:53 
GeneralRe: registry monitor in vb.net Pin
addicktz13-Oct-04 6:22
addicktz13-Oct-04 6:22 
GeneralRe: registry monitor in vb.net Pin
Colin Angus Mackay13-Oct-04 6:38
Colin Angus Mackay13-Oct-04 6:38 
GeneralRe: registry monitor in vb.net Pin
addicktz13-Oct-04 9:14
addicktz13-Oct-04 9:14 
GeneralPropertygrid and listbox value and changing property description runtime Pin
David M J12-Oct-04 12:16
David M J12-Oct-04 12:16 
Generalvb.net / Crystal Report Pin
partt12-Oct-04 8:30
partt12-Oct-04 8:30 
Dim PKCalls As DataTable = DirectCast(Session("GetPKCallS"), DataTable)
PKCalls = New DataTable()
Dim sc As New PK.BusinessLogicLayer.Consumer()
Dim tDay As Integer
Dim tCall As Integer
Dim DD As String
Dim CallActivity As String
tDay = Integer.Parse(txtPast.Text)
tCall = Integer.Parse(txtCall.Text)
DD = Today.AddDays(-tDay)
CallActivity = Today.AddDays(-tCall)
PKCalls = sc.GetPKCallSheet(txtGender.Text, txtRace.Text, lblUpDOB.Text, lblLowDOB.Text, ddlSite.SelectedItem.Value, DD, CallActivity)
Session("GetPKCallS") = PKCalls

Dim cr As New ReportDocument()
Dim cx As New ExportOptions()

cr.Load("path to Crystal Report file")
cr.SetDataSource(Session("GetPKCallS"))

Dim N As String
N = "CallSheets" & Session("userOffice") & Now & ".rpt.PDF"
N = Replace(N, Chr(32), "")
N = Replace(N, ":", "")
N = Replace(N, "/", "")

cr.SaveAs("filepath to destination" & N, ReportFileFormat.VSNetFileFormat)

***********************************
*Given the above code, I am able to send this file to where I want it. When
I try to open the file I get this:
"Adobe Reader could not open 'Name.rpt.PDF' because it is either not a supported file type or because the file has been corrupted"
*************************************
Please help, any examples are much appreciated.
Thank you.

GeneralRe: vb.net / Crystal Report Pin
Dave Kreskowiak12-Oct-04 9:02
mveDave Kreskowiak12-Oct-04 9:02 
GeneralAppend to a string Pin
Brad Fackrell12-Oct-04 6:06
Brad Fackrell12-Oct-04 6:06 
GeneralRe: Append to a string Pin
Colin Angus Mackay12-Oct-04 6:27
Colin Angus Mackay12-Oct-04 6:27 
GeneralRe: Append to a string Pin
Brad Fackrell12-Oct-04 7:17
Brad Fackrell12-Oct-04 7:17 
GeneralError: Object reference not set to an instance of an object Pin
Mekong River12-Oct-04 4:16
Mekong River12-Oct-04 4:16 
GeneralRe: Error: Object reference not set to an instance of an object Pin
Dave Kreskowiak12-Oct-04 5:22
mveDave Kreskowiak12-Oct-04 5:22 
GeneralRe: Error: Object reference not set to an instance of an object Pin
Mekong River12-Oct-04 23:52
Mekong River12-Oct-04 23:52 
GeneralRe: Error: Object reference not set to an instance of an object Pin
Mekong River13-Oct-04 1:16
Mekong River13-Oct-04 1:16 
GeneralRe: Error: Object reference not set to an instance of an object Pin
Dave Kreskowiak13-Oct-04 1:47
mveDave Kreskowiak13-Oct-04 1:47 
GeneralRe: Error: Object reference not set to an instance of an object Pin
Mekong River13-Oct-04 4:09
Mekong River13-Oct-04 4:09 
GeneralRe: Error: Object reference not set to an instance of an object Pin
Dave Kreskowiak13-Oct-04 9:16
mveDave Kreskowiak13-Oct-04 9:16 
GeneralRe: Error: Object reference not set to an instance of an object Pin
Mekong River14-Oct-04 16:45
Mekong River14-Oct-04 16:45 
GeneralRe: Error: Object reference not set to an instance of an object Pin
MohammadAmiry14-Oct-04 1:00
MohammadAmiry14-Oct-04 1:00 
GeneralRe: Error: Object reference not set to an instance of an object Pin
Mekong River14-Oct-04 16:38
Mekong River14-Oct-04 16:38 
GeneralReports/Search/Picturebox and access Pin
stevemwangi12-Oct-04 3:02
stevemwangi12-Oct-04 3:02 
GeneralRe: Reports/Search/Picturebox and access Pin
Mekong River12-Oct-04 3:37
Mekong River12-Oct-04 3:37 
GeneralError : Class Does not support Automation Pin
cberam12-Oct-04 1:02
cberam12-Oct-04 1:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.