Print Page | Close Window

Display Images

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=17056
Printed Date: 08 October 2024 at 8:28am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Display Images
Posted By: markmark
Subject: Display Images
Date Posted: 03 August 2010 at 8:08am
Hi
Can I display pictures in the report control, that are jpgs, and larger than Icons.

And if it can, have you any sample code.

 

I need to display images so that comments can be placed by each image.

 

Thanks

 

Mark



-------------
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0



Replies:
Posted By: Aaron
Date Posted: 03 August 2010 at 1:14pm
Hi,
 
I don't think that's going to be a problem. I know it does work with icons 256x256...
 
Try loading a large JPG into ReportControl.Icons and assign IconIndex to ReportItem and if it doesn't work you can always use Markup. I have a new laptop and didn't install VB yet so I'm not able to provide a sample so you have to try it yourself.
 
Markup: add ReportItem and assign following string to .Caption
 
<StackPanel Background='White' Orientation='Horizontal' >
    <Image Source='file://Soap Bubbles.bmp'/> 'The image is located in same directory as your project
</StackPanel>
 
If you don't want to load images from harddisk, you have to use wndReportControl.GlobalSettings.Icons collection. Markup uses this to load images as index.
<StackPanel Background='White' Orientation='Horizontal' >
    <Image Source='1'/> 'Your image with iconindex = 1 in wndReportControl.GlobalSettings.Icons collection
</StackPanel>

Hope this helpes you a little bit 

 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: markmark
Date Posted: 04 August 2010 at 5:01am
Hi Aaron.
 
Yes most helpfull.
I can get images into my reportcontrol now
 
I set the row heght using the MeasureRow event
 
But what I would really like is a way to resize/scale the image to the row height.
Is that possable with Markup? or do I hae to do this some other way.
 
Also were do you get the markup syntax from for codejock controls, I looked all over their site, but can only find the markuppad.
 
Lots of requests here sorry.
 
But thanks again for your help.
 
Mark


-------------
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0


Posted By: markmark
Date Posted: 04 August 2010 at 6:26am
Hi
I found Stretch='Fill'
But the quality of the resized image is very poor.
 
Still looking..............


-------------
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0


Posted By: markmark
Date Posted: 04 August 2010 at 7:55am
Ok now I resize my images with FreeImage.dll
and use ReportControlGlobalSettings.Icons.LoadBitmap  with the markup.
 
Works a dream.
 
 
Mark


-------------
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net