[Silverlight] dash

6 posts, 0 answers
  1. David Ocasio
    David Ocasio avatar
    147 posts
    Member since:
    Nov 2009

    Posted 01 Oct 2015 Link to this post

    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

     

     

     

     

  2. Deyan
    Admin
    Deyan avatar
    137 posts

    Posted 06 Oct 2015 Link to this post

    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
  3. David Ocasio
    David Ocasio avatar
    147 posts
    Member since:
    Nov 2009

    Posted 06 Oct 2015 in reply to Deyan Link to this post

    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.

  4. Deyan
    Admin
    Deyan avatar
    137 posts

    Posted 06 Oct 2015 Link to this post

    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 standart 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 you 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
  5. David Ocasio
    David Ocasio avatar
    147 posts
    Member since:
    Nov 2009

    Posted 06 Oct 2015 in reply to Deyan Link to this post

    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

  6. Deyan
    Admin
    Deyan avatar
    137 posts

    Posted 07 Oct 2015 Link to this post

    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
Back to Top