support.activereports2.stdedition

Started by webadmin@datadynamics.com at 08-31-2003 12:00 AM. Topic has 0 replies.

Print Search
Sort Posts:    
   08-31-2003, 12:00 AM
webadmin@datadynamics.com is not online. Last active: 12/13/2005 3:53:57 AM webadmin@datadynamics.com

Not Ranked
Joined on 12-12-2005
Posts 0
Adding Picture as Y position other than 0
Originally Posted By: John Alfaro<johna@merlinsolutions.com>

I have the following code that adds dynamically a picture to a report.
However, if I set the .Top position to something other than 0, the picture
and image is not displayed. I did find out that I can change the .Left
position. and the image is moved as expected. The end result is that I want
to add more than one picture to the report, but am unable to. Any ideas
what I'm missing. Thanks for your help.

--Shows image
picture1.Top = 0;
picture1.Left = 0;
picture1.LineColor = System.Drawing.Color.Black;
picture1.LineStyle = DataDynamics.ActiveReports.LineStyle.Solid;
picture1.LineWeight = 2.0f;
picture1.Height = 5.5f;
picture1.Width = 8.5f;
picture1.Name = "picture1";
picture1.SizeMode = DataDynamics.ActiveReports.SizeModes.Zoom;
//picture1.Image.
picture1.Image = System.Drawing.Image.FromFile(@"C:\image.jpg");
rpt.Sections["Detail"].Controls.Add(picture1);
rpt.PrintWidth = 8.5f;

--Doesn't Show Image
picture1.Top = 1;
picture1.Left = 0;
picture1.LineColor = System.Drawing.Color.Black;
picture1.LineStyle = DataDynamics.ActiveReports.LineStyle.Solid;
picture1.LineWeight = 2.0f;
picture1.Height = 5.5f;
picture1.Width = 8.5f;
picture1.Name = "picture1";
picture1.SizeMode = DataDynamics.ActiveReports.SizeModes.Zoom;
//picture1.Image.
picture1.Image = System.Drawing.Image.FromFile(@"C:\image.jpg");
rpt.Sections["Detail"].Controls.Add(picture1);
rpt.PrintWidth = 8.5f;



   Report 
GrapeCity » Forum Archives » support.activer... » Adding Picture as Y position other than 0

Privacy Policy | Copyright © 1997-2012 — GrapeCity, inc.
All trademarks mentioned are the property of their respective owners.