Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB Databases
| Search | Today's Posts | Mark Forums Read
Pro VB Databases Advanced-level VB coding questions specific to using VB with databases. Beginning-level questions or issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old December 16th, 2003, 11:58 PM
Registered User
 
Join Date: Dec 2003
Location: pathumtanee, pathumtanee, Thailand.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aekpong
Default Crystal Report Viewer Control problem ^^"

I have problem with Crystal Report Viewer
Control(V 8.5). I create .rpt file with OLEDB
technology. But When I load form with
CRViewer. I see error message(Server has
not yet been opened).But when i change to
use crystal report control(crystl32.ocx) and
Create .rpt with odbc technology and use method(Connect) of crystal Report Control by DSN method . Same SQL are WORK.

My environment
- Window 2000 advance Server
- Crystal Report 8.5 developer Edition (SP2)
- sql Server 2000 Enterprise

'****************** mycode
Dim objApp As CRAXDRT.Application
Dim objReport As CRAXDRT.Report

Firstday = Format(MonthBegin
(DF_date), "yyyy, mm, dd, 00, 00, 00")
Lastday = Format(MonthEnd
(DF_date), "yyyy, mm, dd, 23, 59, 59")

Set objApp = New CRAXDRT.Application
Set objReport = objApp.OpenReport
("E:\personelPRJ\report\oleRPT.rpt")
SQL = "{workdata.humanId} = '" &
frmprint_humanId & "' and
{workData.todayDate} in DateTime (" &
Firstday & ") to DateTime (" & Lastday & ")"

With CRViewer1

objReport.RecordSelectionFormula = SQL
.ReportSource = objReport
.EnableGroupTree = False
.ViewReport

End With
Set objApp = Nothing
Set objReport = Nothing
'**************************
help me please >(=^_^=)<
Thanks.

Tk.

tk
  #2 (permalink)  
Old December 17th, 2003, 10:16 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: McPherson, Kansas, USA.
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I had a similar experience. This only showed up after I deployed the application, not on the development machine. What ended up being the problem is one of the dependency files was not being installed with the application.

This was several years ago so I don't recall all of the specifics. But, each method used to connect to the data source has specific dependencies. You can find information for the required run time files in the help files that came with crystal reports. Also, I think I was able to contact the tech support and have the issue handle free of charge because at the time it was not very well documented.

Hope this helps.

Larry Asher
  #3 (permalink)  
Old December 17th, 2003, 09:09 PM
Registered User
 
Join Date: Dec 2003
Location: pathumtanee, pathumtanee, Thailand.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aekpong
Default

thanks Larry :)

tk
  #4 (permalink)  
Old December 17th, 2003, 10:10 PM
Registered User
 
Join Date: Dec 2003
Location: pathumtanee, pathumtanee, Thailand.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aekpong
Default

Larry. My trouble are on the development machine At runtime. (-_-)'.

tk
  #5 (permalink)  
Old December 18th, 2003, 10:16 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: McPherson, Kansas, USA.
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think you will find this link useful,

http://support.crystaldecisions.com/...s/c2011624.asp

Best of luck,



Larry Asher
  #6 (permalink)  
Old June 16th, 2006, 02:50 AM
Registered User
 
Join Date: May 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i want to have sql server datetime to be print on crystal report.




Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with crystal activex report viewer NagarajuK Crystal Reports 1 March 17th, 2008 06:57 PM
Crystal report Viewer Not Showing Control Bar simjith Crystal Reports 0 May 20th, 2007 05:28 AM
Crystal Report (9) Viewer Problem Kaustav VB Components 1 October 30th, 2005 07:02 PM
how to read values from crystal viewer control? king910 BOOK: Beginning Java 2 0 July 26th, 2005 01:36 PM
Crystal Report Viewer Control not on my toolbar tciinc VB.NET 2002/2003 Basics 2 March 31st, 2004 06:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.