Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 20th, 2004, 04:36 AM
Registered User
 
Join Date: May 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Addling table links from VB

 Hi

I have a report that I access through RDC

At runtime, I add a temp SQL server view to the report

That works fine

I then try and add a link from the newly added table to an existing table on
report and get the following error

WArning - Fields in the report from the file """ cannot be linked

If I add the view in manaually in Crystal then the view and the table link
fine

This is my VB code



Set mobjApplication = New CRAXDDRT.Application
mobjApplication.LogOnServer "PDSODBC.DLL", "VtsMain", "VtsMain", "sa",
"xxxx"
subGroupChooseReport ' open selected report



X.ActiveConnection = "Provider=MSDASQL.1;Persist SecurityInfo=False;User
ID=sa;pwd=xxxx;Data Source=VTSMain"
X.Open ("Select * from tester")
'add view to report
mobjreport.Database.AddADOCommand X.ActiveConnection, X.ActiveCommand

Set tab1 = mobjreport.Database.Tables(1) ' table i want to link to
Set tab2 = mobjreport.Database.Tables(11) ' 11 being the new view added to
report
Debug.Print mobjreport.Database.Links.Count

'attempt to add link
mobjreport.Database.Links.Add tab2, tab1, 30, 1, crJTEqual,
crLTLookupProduct, False, 1



Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Table cells as links gjeardle HTML Code Clinic 16 January 24th, 2007 12:08 PM
Table Links samdavis HTML Code Clinic 2 November 30th, 2004 06:38 AM
links in table fields (td) amc Dreamweaver (all versions) 0 August 30th, 2004 09:20 PM



All times are GMT -4. The time now is 01:07 PM.


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