This is a migrated thread and some comments may be shown as answers.

[Silverlight] dash

5 Answers 62 Views
PdfProcessing
This is a migrated thread and some comments may be shown as answers.
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
David Ocasio asked on 01 Oct 2015, 12:54 PM

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

Sort by
0
Deyan
Telerik team
answered on 06 Oct 2015, 10:27 AM
Hello David Charles Ocasio,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 06 Oct 2015, 10:33 AM

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.

0
Deyan
Telerik team
answered on 06 Oct 2015, 10:59 AM
Hello David Charles Ocasio,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 06 Oct 2015, 11:06 AM

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

0
Deyan
Telerik team
answered on 07 Oct 2015, 03:56 PM
Hello 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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
PdfProcessing
Asked by
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
Answers by
Deyan
Telerik team
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
Share this question
or