Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Migrating from CR9 to CR XI R2 Sp6 Post Reply Post New Topic
Author Message
kimt
Newbie
Newbie
Avatar

Joined: 06 Oct 2009
Online Status: Offline
Posts: 39
Quote kimt Replybullet Topic: Migrating from CR9 to CR XI R2 Sp6
     Posted: 08 Sep 2010 at 2:59am
After several posts concerning vb6 and cr9, I discovered that OS7 does not like CR9. It still works on a Virtual machine running xp mode.

Error 50003 (which I said was err 30005 by mistake) means that OS Vista forward including OS7 does not play well when changing data in the C:\Program Files\{my directory} directory. The cure is to place all files (databases) that change in to another directory such as C:\ProgramData\. More about that here: http://social.msdn.microsoft.com/forums/en-US/vs2008sp1beta/thread/d05a72b0-cfcd-4a0f-8179-f806af5605c0/

After straightening all of that out I still struggle with some of the code transported from CR9 to CR XI R2. It prints a picture that has been added to that record along with First name, Maiden name and Last name.

Private WithEvents crSection As CRAXDRT.Section
Private Report As New crNameTagsSpecialEvents

Private Sub crSection_Format(ByVal pFormattingInfo As Object)
    On Error GoTo ErrHandle
        Set crSection.ReportObjects("Classmate").FormattedPicture = _
        LoadPicture(Report.Sections("DetailSection3").ReportObjects("PicFile").Value)
crSection_Format_Exit:
    Exit Sub

ErrHandle:
    If Err.Number = 53 Then
        MsgBox Err.Description
        Resume Next
    Else
        MsgBox Err.Description
    End If
End Sub

However, in CR 11.5 error message # 9 'Subscript out of Range' repeats for each name tag printed.Then in the report the place holder pic also repeats for each msg.

Any ideas would be great.

Thank you.


Edited by kimt - 08 Sep 2010 at 3:16am
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum