Click here to Skip to main content
15,898,374 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generaloracle 8i connection with VB.Net Pin
Member 147757828-Oct-04 8:56
Member 147757828-Oct-04 8:56 
GeneralRe: oracle 8i connection with VB.Net Pin
Jim Matthews28-Oct-04 9:31
Jim Matthews28-Oct-04 9:31 
GeneralRe: oracle 8i connection with VB.Net Pin
raymond13931-Oct-04 12:22
raymond13931-Oct-04 12:22 
General.NET graphical controls in VB 6 Pin
limeysontherun28-Oct-04 7:50
limeysontherun28-Oct-04 7:50 
GeneralRe: .NET graphical controls in VB 6 Pin
Dave Kreskowiak28-Oct-04 16:39
mveDave Kreskowiak28-Oct-04 16:39 
GeneralRe: .NET graphical controls in VB 6 Pin
limeysontherun31-Oct-04 7:32
limeysontherun31-Oct-04 7:32 
GeneralRe: .NET graphical controls in VB 6 Pin
Dave Kreskowiak31-Oct-04 9:48
mveDave Kreskowiak31-Oct-04 9:48 
GeneralPrint file VB.Net Pin
partt28-Oct-04 6:49
partt28-Oct-04 6:49 
I know I'll get hell for this one....How do I print a PDF file from vbnet?
My code is below which populates a crystal reports document and saves it as a pdf, how can I print it now?

Dim sc As New PP.BusinessLogicLayer.Schedule()
sc.ScheduleStamp = Session("Sch")
sc.StudyNo = txtStudyNumber.Text.Trim
sc.AQ = Session("AQ")
sc.PrintTopSheet()

Dim CRDoc As New ReportDocument()
CRDoc.Load("C:\w\x\y\z.rpt")

Dim logonInfo As New TableLogOnInfo()
Dim i As Integer

For i = 0 To CRDoc.Database.Tables.Count - 1
logonInfo.ConnectionInfo.ServerName = serverName
logonInfo.ConnectionInfo.DatabaseName = databaseName
logonInfo.ConnectionInfo.UserID = uid
logonInfo.ConnectionInfo.Password = pwd
CRDoc.Database.Tables.Item(i).ApplyLogOnInfo(logonInfo)
Next

Dim crExportOptions As ExportOptions
Dim crDiskFileDestinationOptions As New DiskFileDestinationOptions()
Dim Fname As String

Fname = "\\a\b\c.pdf"

crDiskFileDestinationOptions.DiskFileName = Fname

crExportOptions = CRDoc.ExportOptions
With crExportOptions
.DestinationOptions = crDiskFileDestinationOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.PortableDocFormat
End With

CRDoc.Export()
GeneralRe: Print file VB.Net Pin
Dave Kreskowiak28-Oct-04 16:33
mveDave Kreskowiak28-Oct-04 16:33 
GeneralRe: Print file VB.Net Pin
Mekong River2-Nov-04 2:41
Mekong River2-Nov-04 2:41 
GeneralRe: Print file VB.Net Pin
Dave Kreskowiak2-Nov-04 8:04
mveDave Kreskowiak2-Nov-04 8:04 
GeneralRe: Print file VB.Net Pin
Mekong River2-Nov-04 13:48
Mekong River2-Nov-04 13:48 
GeneralRe: Print file VB.Net Pin
Mekong River2-Nov-04 17:24
Mekong River2-Nov-04 17:24 
GeneralVisio ActiveX Drawing Control Pin
pantera728-Oct-04 5:31
pantera728-Oct-04 5:31 
GeneralData Grid Paging Pin
rjcarney28-Oct-04 2:38
rjcarney28-Oct-04 2:38 
GeneralRe: Data Grid Paging Pin
Mekong River31-Oct-04 22:15
Mekong River31-Oct-04 22:15 
Generalclient server app in VB+SQL Pin
shaf_sar27-Oct-04 16:58
shaf_sar27-Oct-04 16:58 
GeneralRe: client server app in VB+SQL Pin
Mekong River27-Oct-04 18:59
Mekong River27-Oct-04 18:59 
GeneralRe: client server app in VB+SQL Pin
RichardGrimmer29-Oct-04 4:09
RichardGrimmer29-Oct-04 4:09 
GeneralRe: client server app in VB+SQL Pin
Mekong River31-Oct-04 22:11
Mekong River31-Oct-04 22:11 
GeneralImport excel using VBA Pin
Rip V. Winkle27-Oct-04 15:44
Rip V. Winkle27-Oct-04 15:44 
GeneralDragDrop Pin
PaleyX27-Oct-04 11:55
PaleyX27-Oct-04 11:55 
GeneralRe: DragDrop Pin
Tom John29-Oct-04 4:59
Tom John29-Oct-04 4:59 
QuestionHow to receive mail using sockets or anything without using third party utility (control) in vb.net Pin
Member 138681227-Oct-04 11:26
Member 138681227-Oct-04 11:26 
GeneralAccess like Report Pin
MohammadAmiry27-Oct-04 6:48
MohammadAmiry27-Oct-04 6:48 

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.