Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Display Images
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Display Images

 Post Reply Post Reply
Author
Message Reverse Sort Order
markmark View Drop Down
Senior Member
Senior Member


Joined: 30 November 2007
Status: Offline
Points: 142
Post Options Post Options   Thanks (0) Thanks(0)   Quote markmark Quote  Post ReplyReply Direct Link To This Post Topic: Display Images
    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
Back to Top
markmark View Drop Down
Senior Member
Senior Member


Joined: 30 November 2007
Status: Offline
Points: 142
Post Options Post Options   Thanks (0) Thanks(0)   Quote markmark Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
markmark View Drop Down
Senior Member
Senior Member


Joined: 30 November 2007
Status: Offline
Points: 142
Post Options Post Options   Thanks (0) Thanks(0)   Quote markmark Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
markmark View Drop Down
Senior Member
Senior Member


Joined: 30 November 2007
Status: Offline
Points: 142
Post Options Post Options   Thanks (0) Thanks(0)   Quote markmark Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.066 seconds.