Load a Image in web report
Posted: Wed Feb 17, 2010 11:01 am
Hi,
2 Doubts
First....
I trying to load a image saved in my vb web application to my web report and using the follow VB code:
'Create Image
Dim imagen As New Stimulsoft.Report.Components.StiImage()
imagen.ClientRectangle = New Stimulsoft.Base.Drawing.RectangleD(8.4, 12.4, 2.6, 2.6)
imagen.Border = New Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, False, 4, New Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black))
imagen.Brush = New Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent)
'imagen.ImageToDraw = LoadBitmap("Imagenes/imgMasterCatalogos/Clientes42x42.png")
imagen.ImageURLValue = "~/Imagenes/imgMasterCatalogos/Clientes42x42.png"
imagen.ImageURL = New StiImageURLExpression(HttpContext.Current.Server.MapPath("~/Imagenes/imgMasterCatalogos/Clientes42x42.png"))
Page.Components.Add(imagen)
Currently when I run the application don't show me the image in my report, show me a broken imagen logo.
:ops:
Second...
When I put a watermark with VB code inside my report, the watermark appers in the report, like incomplete image.
I means if I write "Report" like watermark the report show me the letter R drawn in half, the letter E is missing a piece and the other shows it well. I have an alignment middle center
:ops:
Page.Watermark = New Stimulsoft.Report.Components.StiWatermark()
Page.Watermark.Text = "REPORT"
Page.Watermark.Font = New System.Drawing.Font("Arial", 60.0F)
Page.Watermark.TextBrush = New Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromArgb(50, 0, 0, 0))
Page.Watermark.ImageAlignment = ContentAlignment.MiddleCenter
Could someone help me with these two questions?
How do to load the image in my web report?
how do to show complete the watermark?
Thanks in Advance
2 Doubts
First....
I trying to load a image saved in my vb web application to my web report and using the follow VB code:
'Create Image
Dim imagen As New Stimulsoft.Report.Components.StiImage()
imagen.ClientRectangle = New Stimulsoft.Base.Drawing.RectangleD(8.4, 12.4, 2.6, 2.6)
imagen.Border = New Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, False, 4, New Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black))
imagen.Brush = New Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent)
'imagen.ImageToDraw = LoadBitmap("Imagenes/imgMasterCatalogos/Clientes42x42.png")
imagen.ImageURLValue = "~/Imagenes/imgMasterCatalogos/Clientes42x42.png"
imagen.ImageURL = New StiImageURLExpression(HttpContext.Current.Server.MapPath("~/Imagenes/imgMasterCatalogos/Clientes42x42.png"))
Page.Components.Add(imagen)
Currently when I run the application don't show me the image in my report, show me a broken imagen logo.
:ops:
Second...
When I put a watermark with VB code inside my report, the watermark appers in the report, like incomplete image.
I means if I write "Report" like watermark the report show me the letter R drawn in half, the letter E is missing a piece and the other shows it well. I have an alignment middle center
:ops:
Page.Watermark = New Stimulsoft.Report.Components.StiWatermark()
Page.Watermark.Text = "REPORT"
Page.Watermark.Font = New System.Drawing.Font("Arial", 60.0F)
Page.Watermark.TextBrush = New Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromArgb(50, 0, 0, 0))
Page.Watermark.ImageAlignment = ContentAlignment.MiddleCenter
Could someone help me with these two questions?
How do to load the image in my web report?
how do to show complete the watermark?
Thanks in Advance