-
May 12th, 2012, 05:52 AM
#1
Thread Starter
Addicted Member
[RESOLVED] server has not yet been opened
i have the following code
Code:
Set Report = crxApp.OpenReport(App.Path & "\Reports\CSP1.rpt", 1)
With Report
.ExportOptions.FormatType = crEFTPortableDocFormat
.ExportOptions.DestinationType = crEDTDiskFile
.ExportOptions.DiskFileName = App.Path & "\Reports\CSP1.PDF"
.ExportOptions.PDFExportAllPages = True
.Export (False)
End With
but it showing server has not yet been opened" on .Export (False) line
any help would be appreciated
-
May 12th, 2012, 06:44 AM
#2
Thread Starter
Addicted Member
Re: server has not yet been opened
my crystal report asking user name and password everytime when am refreshing and creating pdf directly from the report. I think the user name and password is the problem here. Am opening the same report in VB6 by passing password and username but i dont know how to pass it for pdf creation...
please help
-
May 13th, 2012, 11:45 PM
#3
Thread Starter
Addicted Member
Re: server has not yet been opened
Report.Database.LogOnServer "p2sodbc.dll", "dsn", "", "user", "pwd"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|