Hi,
I have tried adding border using the following methods also
1)
Dim frameStyle As NStandardFrameStyle = DirectCast(document.BackgroundStyle.FrameStyle, StandardFrameStyle)
frameStyle.InnerBorderWidth = New NLength(5)
frameStyle.InnerBorderColor = Color.Black
frameStyle.OuterBorderWidth = New NLength(5)
frameStyle.OuterBorderColor = Color.Black
document.BackgroundStyle.FrameStyle.Visible = True
2)
'Dim imageImageFrameStyle As NImageFrameStyle = New NImageFrameStyle()
'imageImageFrameStyle.FillStyle = New NGradientFillStyle(GradientStyle.Horizontal, GradientVariant.Variant2, Color.AliceBlue, Color.BlanchedAlmond)
'imageImageFrameStyle.BorderStyle.Width = New NLength(2, NGraphicsUnit.Pixel)
'imageImageFrameStyle.BorderStyle.Color = Color.Black
'imageImageFrameStyle.ShadowStyle.Type = ShadowType.LinearBlur
'imageImageFrameStyle.ShadowStyle.Color = Color.FromArgb(125, 0, 0, 0)
''imageImageFrameStyle.LightColor = Nevron.GraphicsCore.NColor.White
''imageImageFrameStyle.ShadowColor = Color.Navy
'imageImageFrameStyle.LightEffectSize = New NLength(7, NGraphicsUnit.Pixel)
'imageImageFrameStyle.TubeMargins = New NMarginsL(New NLength(30, NGraphicsUnit.Pixel), New NLength(30, NGraphicsUnit.Pixel), New NLength(30, NGraphicsUnit.Pixel), New NLength(30, NGraphicsUnit.Pixel))
'imageImageFrameStyle.CornerMargins = New NMarginsL(New NLength(40, NGraphicsUnit.Pixel), New NLength(30, NGraphicsUnit.Pixel), New NLength(30, NGraphicsUnit.Pixel), New NLength(30, NGraphicsUnit.Pixel))
'imageImageFrameStyle.BackgroundColor = Color.White
'document.BackgroundStyle.FrameStyle = imageImageFrameStyle
document.BackgroundStyle.FrameStyle.Visible = False
The problem i am facing is the border is overlapping with the image edges.
Please help me how to set the border properties so that it sits outside the image and doesn't overlap with the original image.
Please find attached the pdf file generated.
Thanks,
Sudarshan