Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crystal Report in Win98SE & 2000 problem
Message
From
27/08/2003 23:01:12
 
 
To
All
General information
Forum:
Visual Basic
Category:
Third party products
Title:
Crystal Report in Win98SE & 2000 problem
Miscellaneous
Thread ID:
00824065
Message ID:
00824065
Views:
43
Dear All,

I'm using Crystal Report 8.5 and VB 6.0. And i have already design a report to print out my company product catalogue with product picture. It's work fine under Win98SE platform. But when i run the same program with same config in Win 2000 platform. All the catalogue picture are the same as the first product picture loaded.

My coding in the CR designer as following:
****************************
Private Sub Section10_Format(ByVal pFormattingInfo As Object)
If UCase(Field5.Value & ".jpg") = UCase(Dir(syspath & "photo\" & Field5.Value & ".jpg")) Then
Set stylepic.FormattedPicture = LoadPicture(syspath & "photo\" & Trim(Field5.Value) & ".jpg")
Else
Set stylepic.FormattedPicture = LoadPicture(syspath & "photo\" & "no_pic.jpg")
End If
End Sub
****************************
Section10 is the Detail Section of the Crystal Report
Field5 is the Product Code which the product picture filename is the same as the product code.Example : Product Code: ABC100 , the product picture ABC100.jpg

Did anyone experience on this? Anyone can give me some hints on it?
Thanks you very much
Next
Reply
Map
View

Click here to load this message in the networking platform