Display Images |
Post Reply |
Author | |
markmark
Senior Member Joined: 30 November 2007 Status: Offline Points: 142 |
Post Options
Thanks(0)
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. Thanks Mark |
|
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
markmark
Senior Member Joined: 30 November 2007 Status: Offline Points: 142 |
Post Options
Thanks(0)
|
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 |
|
markmark
Senior Member Joined: 30 November 2007 Status: Offline Points: 142 |
Post Options
Thanks(0)
|
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 |
|
markmark
Senior Member Joined: 30 November 2007 Status: Offline Points: 142 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions 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 |