Hi
On this line i get error - ?C_Image
It contains path of the Image
Private Sub Section5_Format(ByVal pFormattingInfo As Object)
Set Picture1.FormattedPicture = LoadPicture(?C_Image)
End Sub
Thanks
Hi
On this line i get error - ?C_Image
It contains path of the Image
Private Sub Section5_Format(ByVal pFormattingInfo As Object)
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.
Emily FosterPosted Apr 15, 2025, 11:21 AM
Thanks for sharing the details of the Error - Expected Expression you encountered. In the code snippet provided, the issue seems to be with the expression `?C_Image` within the `LoadPicture()` function.
It appears that `?C_Image` should actually be a variable or a string literal representing the path of the image you want to load. To resolve this error, you need to ensure that `?C_Image` is correctly defined and contains the path to the image you want to load.
Here is an example of how you can modify the code to correctly specify the image path:
In this updated code snippet, `imagePath` is a variable that holds the path to the image you want to load. Make sure to replace `"C:\Path\To\Your\Image.jpg"` with the actual path of your image file.
By correcting the expression passed to the `LoadPicture()` function with the appropriate image path, you should be able to resolve the Error - Expected Expression you encountered.
If you have any more questions or need further clarification, feel free to ask!