Hi
How i can pass parameter value to imagepath . I am using Vb6 & Crystal Report
Private Sub Section5_Format(ByVal pFormattingInfo As Object)
Dim imagePath As String
Set Picture1.FormattedPicture = LoadPicture(C_Image)
End Sub
Thanks
Hi
How i can pass parameter value to imagepath . I am using Vb6 & Crystal Report
Private Sub Section5_Format(ByVal pFormattingInfo As Object)
Dim imagePath As String
Set Picture1.FormattedPicture = LoadPicture(C_Image)
End Sub
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sophia CarterPosted Apr 15, 2025, 11:27 AM
Hi there! It seems like you're dealing with passing parameter values in VB6 and Crystal Report, specifically related to setting an image path. Let's break it down step by step:
In your provided code snippet, you have a Sub called Section5_Format that seems to be setting the image path for Picture1. However, the actual image path is not being passed as a parameter in this snippet. Instead, you are using a variable called C_Image, which appears to be undefined in the context of your code.
If you want to pass a parameter value to the image path, you can do so by either directly providing the path as a parameter to the Sub or by having a separate function that returns the desired image path based on some input parameters.
Here's an example of how you can modify your code to include passing the image path as a parameter:
In this modified code snippet, the Section5_Format Sub now takes an additional parameter called imagePath, which is the path to the image you want to load.
When calling this Sub, you can provide the image path as a parameter:
By doing this, you can dynamically pass different image paths to the Section5_Format Sub based on your requirements.
I hope this explanation helps you with passing parameter values to the image path in VB6 and Crystal Report. If you have any more questions or need further clarification, feel free to ask!
Mike HarveyPosted Apr 15, 2025, 2:35 PM
This is one of the rare articles that I read from beginning to end without feeling bored.