验证数据库:“数据库表名已更改"; [英] Verify Database: "the database Tablename has changed"

查看:142
本文介绍了验证数据库:“数据库表名已更改";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个vb6应用程序,可将特定的晶体导出为pdf格式.我在按钮单击事件中编写了以下代码.

Hi
I have a vb6 application to export a particular crystal to a pdf format. I Wrote the following code in button click event.

Dim crxApplication As CRAXDDRT.Application
Dim oReport As CRAXDDRT.Report
Dim crxExportOptions As CRAXDDRT.ExportOptions
Dim myDatabase As String

Set crxApplication = New CRAXDDRT.Application
Dim crxTable As CRAXDDRT.DatabaseTable

Set oReport = crxApplication.OpenReport(App.Path & "\sample.rpt", 1)
oReport.FieldMappingType = crAutoFieldMapping
For Each crxTable In oReport.Database.Tables
    crxTable.SetLogOnInfo servername, Database, userid, password
Next

Set crxExportOptions = oReport.ExportOptions
crxExportOptions.DestinationType = crEDTDiskFile
crxExportOptions.DiskFileName = App.Path & "\MyReport.pdf"
crxExportOptions.FormatType = crEFTPortableDocFormat
crxExportOptions.PDFFirstPageNumber = 1
crxExportOptions.PDFLastPageNumber = 1
crxExportOptions.PDFExportAllPages = True
oReport.Export False



它工作正常.但是当我单击按钮时,会出现以下警告消息.
数据库文件表名"已更改.继续修改报告!
我验证了水晶报表并保存.直接打开Crystal报表文件时,它可以正常工作.请帮助克服此警告

[edit]删除了虚假标签,添加了标题,代码块-OriginalGriff [/edit]



It works fine. but while i click the button the following warning message occurs.
The database file "tablename" has changed. Proceeding to fix up the report!
I verified the crystal report and save it. While directly open crystal report file it works finely. please help to overcome this warning

[edit]Spurious tags removed, title, code block added - OriginalGriff[/edit]

推荐答案

请在Crystal报表设计器中打开报表并从菜单中验证数据库.请检查一下.
Please open report in crystal report designer and verify database from menu. Please check it.


这篇关于验证数据库:“数据库表名已更改";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆