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