I am currently creating a pdf document using your PdfFormatProvider.
Inserting text does not include any "-" (dash) characters.
Dim
partNumberBlock = partNumberCell.Blocks.AddBlock()
SetTextProperties(partNumberBlock, RgbColors.Black, 18, FontsRepository.Helvetica)
partNumberBlock.InsertText(sws.Z_No.ToString())
partNumberBlock.InsertLineBreak()
I am using your ​FontRepository and have tried various of the standard fonts.
Is the problem similar to the previous post about german characters and the dash is just not part of the font.
Any help would be appreciated
David Charles Ocasio
5 Answers, 1 is accepted
Thank you for contacting us.
We have managed to reproduce the issue and fix it. The fix will be available for download in the next latest internal build.
In appreciation of your report I have added 500 Telerik points to your account.
I hope this is helpful. If you have any other questions or concerns please do not hesitate to contact us again.
Regards,
Deyan
the Telerik team
thanks deyan,
now the big question. LOL.
When do you expect the next internal build(roughly is fine, typically , etc.)
This is the last bug for an install (they are waiting).
Is there any work around for now.
The LIBs are usually released every week. The next LIB is expected at the beginning of the next week.
As for the workaround - the only possible workaround is to register font different than the standard fonts in the fonts repository and use this font to draw the dashes. Due to Silverlight limitations you cannot access the system fonts, so you should either embed the font data in your application or access it via a web service. You may see this SpreadProcessing SDK example which uses this web service project to register all used PDF fonts before exporting the PDF file.
I hope this information is helpful. If you have other questions please contact us again.
Regards,
Deyan
the Telerik team
one more question then.
I am supposing that the web service project is using a web service (aka name ,LOL).
Do you have an example project or code snippet for embedding the font data in the application instead.
I tried to do that with the documentation at hand but it was slim and I had difficulties.
thanks
David Charles Ocasio
In order to embed font data in your application you should add the font file as a resource file for your project. Then you should register the font using the font file bytes. More detailed information on registering the font file you may find in this forum post. Once a font is registered you can create an instance of this font using the TryCreateFont method. This instance may be set to some text when generating the pdf content.
If you have other questions contact us again.
Regards,
Deyan
the Telerik team