How to access ms access secure database in crystal reports 8.0 with vb6
Hello babu.
Please help me how i can access password protected database in crystal reports 8.0 with vb6 .how i can pass password at runtime to crystal reports please answer me soon.
Thanx in Advance.
Nazim
Not seeing new XML column
I manually added a new column in my XML file.
I put it in both my schema and in the data section.
The new column does not show up in field explorer even though I disconnected and reconnected to the database, as well as, leaving and restarting Crystal.
Any ideas?
Thanks
Gary
Re: How to access ms access secure database in crystal reports 8.0 with vb6
hi
Use the following small code to access login and password from crystal report.
crCommon.LogonInfo(0)= "dsn=;uid=;pwd=Hello;dsq="
crCommon.DataFiles(0)= "C:\Mydata.mdb"
yours friendly,
k.Babu
Quote:
Originally posted by nazimocp
Hello babu.
Please help me how i can access password protected database in crystal reports 8.0 with vb6 .how i can pass password at runtime to crystal reports please answer me soon.
Thanx in Advance.
Nazim
How to access password protected database
Thanx for ur answer but it did't solve the prob i am using crystal report 8.0 and ther is no property or method of logoninfo
crReport.LogonInfo(0) i counld not found this property in crystal report 8.0 but there is a method crReport.database.tables(0).setLogonInfo "Servername,uid,pass") but i am using database file driver not oledb or dsn i am using direct database file.
Please help me to solve this prob
thanx in advance
Nazim
Problem with Crystal Report
Hi,
When i want to print a report, windows nt tells me that crpaige(32).dll not found on path.
i put file named crpaig32.dll in system path. I try to register it by regsvr32 but DllRegisterServer entry point was not found. I imagine that this dll have not to be registered.
I don't known how to correct the problem since i use visual basic 6 instead of 5 version.
The problem appear only on client station where my soft is installed by Package deployment, there is no problem on the development computer.
Thanks for your help
Crystal reports 5 skips a record.
I have a problem. While using Crystal reports 4.6 with VB 6, I have to print a recipt with just one record. At times Crystal report shows an empty report. If I debug the report activation in VB, it works fine. I increase the time gap between the record fetching and report activation, i have put a loop of doevents: but still it fails at times. What do I do?:confused:
'No pages were exported' when trying to export report to .pdf
I have a vb .dll that invokes the crystal report view .OCX to view
reports before exporting them. I have added an 'export' button that
runs the following code:
m_oRpt.ExportOptions.Reset
m_oRpt.ExportOptions.PromptForExportOptions
'If the destinationType is not set then cancel must have been
pushed
If m_oRpt.ExportOptions.DestinationType <> crEDTNoDestination Then
m_oRpt.Export False
End If
The preview correctly displays the intended report and on dev system
this code runs fine.
On the site however there are two systems, a test system and a live
system. They both use different databases but the ODBC connection name is the same for each. The reports were developed on the live system and they work
fine on that system.
On the test system however, when the user exports the report (chooses .pdf
format, all pages, and a filename), the report fails to export and an
error is generated:
'No pages were exported'
This is even though the preview correctly displays the report and data.
In addition, if the report is *not* previewed ie the report viewer is
not loaded but the report just exported, it works fine.
Can anyone shed some light as to what this error message means and how
to fix it?
Thanks
Lindsay
Re: Re: Re: Crystal Report
hi friends,
Both can be posible, if you had table with generalOLE field you can use the field directly to the crystal report to view the pictures.
Quote:
Originally posted by zjain
hi babu, i have the same problem as i want to add image of parties on report . as you told to put picture field..does it mean the field from my table or from insert menu of crystal report.
plz help.
Zankhesh
Re: 'No pages were exported' when trying to export report to .pdf
Hi,
You have to install files which type of export format you have choosen, for eg. if you want to export option for pdf format at run time you should install pdf export related file in your testing machine
for more details refer the crystal report documentation for destribute files
Quote:
Originally posted by lsmith
I have a vb .dll that invokes the crystal report view .OCX to view
reports before exporting them. I have added an 'export' button that
runs the following code:
m_oRpt.ExportOptions.Reset
m_oRpt.ExportOptions.PromptForExportOptions
'If the destinationType is not set then cancel must have been
pushed
If m_oRpt.ExportOptions.DestinationType <> crEDTNoDestination Then
m_oRpt.Export False
End If
The preview correctly displays the intended report and on dev system
this code runs fine.
On the site however there are two systems, a test system and a live
system. They both use different databases but the ODBC connection name is the same for each. The reports were developed on the live system and they work
fine on that system.
On the test system however, when the user exports the report (chooses .pdf
format, all pages, and a filename), the report fails to export and an
error is generated:
'No pages were exported'
This is even though the preview correctly displays the report and data.
In addition, if the report is *not* previewed ie the report viewer is
not loaded but the report just exported, it works fine.
Can anyone shed some light as to what this error message means and how
to fix it?
Thanks
Lindsay
Re: Re: Re: Crystal Report
Hi,
Disable Stored Data with Report option in your crystal report design mode, and refresh preview data.
Quote:
Originally posted by zjain
as i am using the ms-access2000 as back-end and it that for ole data type it just store some number for any picture and if i put that picture fields from table the same number is visible in report in stead of actual image...
plz help.
Zankhesh
Re: Crystal reports 5 skips a record.
Hi,
Make sure the problem was only for the time delay, Are you sure with that don't use "doevents" use API Delay or use timer control for a time delay show wait screen form, after release the timer control, view the crystal report.
Quote:
Originally posted by amyn_d
I have a problem. While using Crystal reports 4.6 with VB 6, I have to print a recipt with just one record. At times Crystal report shows an empty report. If I debug the report activation in VB, it works fine. I increase the time gap between the record fetching and report activation, i have put a loop of doevents: but still it fails at times. What do I do?:confused:
crystal report connect to database SQL Server
Please help me how to crystal report connect to database(SQL Server) within code Visual Basic.
Thanks!
Re: please help me...hot...
Refer
cr.LogonServer (dllName$, ServerName$, DatabaseName$, UserID$, Password$)
Quote:
Originally posted by thienloclt
Please help me how to crystal report connect to database (SQL Server) within code Visual Basic.
Ex:
in MS Access:
crCommon.LogonInfo(0)= "dsn=;uid=;pwd=madras;dsq="
crCommon.DataFiles(0)= "C:\Mydata.mdb"
in SQL Server?
crCommon.LogonInfo(0)= ?
crCommon.DataFiles(0)= ?
Login info:
Server name: THIENLOC
Database name: PAYROLL
UserID: sa
Password:
Thanks!
Re: crystal report connect to database SQL Server
Logs on to a SQL server.
Usage
[form.]Report.Connect[= Name;UserID;Password;DatabaseQualifier$]
For example:
Report1.Connect = "DSN = Accounting;UID = 734;PWD = bigboard;DSQ = Administration"
Quote:
Originally posted by thienloclt
Please help me how to crystal report connect to database(SQL Server) within code Visual Basic.
Thanks!
Text into Crystal Reports Page/Report Header
Hello Babu,
I was wondering if there is a way that I could type in some text in VB 6.0 and post that data from a Textbox into a field or label in a Crystal Reports Page/Report Header?
Thanks,
John-
Re: Text into Crystal Reports Page/Report Header
Cr.BoundReportHeading = "Report Title Message"
Quote:
Originally posted by vbjohn
Hello Babu,
I was wondering if there is a way that I could type in some text in VB 6.0 and post that data from a Textbox into a field or label in a Crystal Reports Page/Report Header?
Thanks,
John-