Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Problem with PrintPreview (Read 3121 times)
vtortola
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 104
Joined: Nov 26th, 2008
Problem with PrintPreview
Mar 5th, 2009 at 1:51pm
Print Post  
I have this problem when I call the "PrintPreview" method:


System.NotSupportedException occurred
  Message="BitmapMetadata is not available on BitmapImage."
  Source="PresentationCore"
  StackTrace:
      at System.Windows.Media.Imaging.BitmapImage.get_Metadata()
  InnerException:


Any idea about which is the problem?

Cheers.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problem with PrintPreview
Reply #1 - Mar 5th, 2009 at 6:06pm
Print Post  
Are you displaying any bitmap images in the diagram nodes?
Cheers.
  
Back to top
 
IP Logged
 
vtortola
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 104
Joined: Nov 26th, 2008
Re: Problem with PrintPreview
Reply #2 - Mar 5th, 2009 at 6:11pm
Print Post  
Yes, I have pictures on them.

Have I to do some special with them?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problem with PrintPreview
Reply #3 - Mar 6th, 2009 at 6:05am
Print Post  
Could you also email us the image files?
  
Back to top
 
IP Logged
 
vtortola
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 104
Joined: Nov 26th, 2008
Re: Problem with PrintPreview
Reply #4 - Mar 6th, 2009 at 6:01pm
Print Post  
I'm using the Visual Studio icons located at:

....\Microsoft Visual Studio
8\Common7\VS2005ImageLibrary\VS2005ImageLibrary.zip

The icons located at  "bitmaps\commands\pngformat" inside that zip.

Cheers.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problem with PrintPreview
Reply #5 - Mar 11th, 2009 at 12:05pm
Print Post  
I've loaded them all as shown below and PrintPreview worked fine. Is that the full stack trace for the exception? Could you email the diagram file to our support address?

Code
Select All
DirectoryInfo di = new DirectoryInfo(
	@"C:\Program Files\Visual Studio 8\Common7\VS2005ImageLibrary\bitmaps\commands\pngformat");
foreach (FileInfo fi in di.GetFiles("*.png"))
{
	ShapeNode s = diagram.Factory.CreateShapeNode(0, 0, 60, 60);
	s.Image = new BitmapImage(new Uri(fi.FullName));
	s.ImageAlign = ImageAlign.Center;
}
GridLayout gl = new GridLayout();
gl.Iterations = 1;
gl.SplitGraph = false;
gl.Arrange(diagram);
 



Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint