Hello Infragistics Support!
I am trying to save an image file (e.g. Tiff-File) from an XamPdf417Barcode-Control.I already tried the sample code and converted it to my needs.
The problem I have, is that part of the code is cut off in the image.So the image-file scaling i not correct.
I've attached my small test program - so you can see what I did.
I hope you can help me.
Best regardsStefan Schmitt
Hello Stefan,
The margins and the alignment properties are throwing off the RenderTargetBitmap. If you place the XamPdf417Barcode control inside a Grid and you apply the margin and alignment properties to the grid instead, it will export properly.
<Grid Grid.Column="1" Grid.Row="1" Margin="5" HorizontalAlignment="Left" VerticalAlignment="Top"> <ig:XamPdf417Barcode x:Name="DmcPdf417Output" Data="{Binding Text, ElementName=TextBoxInputText}" /> </Grid>
Hello Rob!
That did it! With your sample it worked.
I'm glad you have resolved your issue. Let me know if you have any further questions on this matter.