By sudarshan rudrappa - Friday, September 21, 2012
Hi
I have a pdf generated by Nevron for which i need to had a rectangular border or a shape file which contains the border. I have added the shapefile which contains the border to the pdf image.But the original image is compressed in size. Please help me how to set the proportions of the frame so that both images are fit wit each other.
The code i am using to add the border shape file is given below Dim shapeFilePaths As List(Of String) shapeFilePaths = Session("ShapeFileNames") Dim fullFilePath As String fullFilePath = HttpContext.Current.Server.MapPath("~/Imaging/ShapeFiles/" & Config.ProjectID & "/" & buildingID.ToString & "/" & "Border_lin.shp") shapeFilePaths.Add(fullFilePath)
Thanks, Sudhi
|
By sudarshan rudrappa - Tuesday, September 25, 2012
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
|
|