Hi Christian thank you so much for your answer, I have ‘scrambled’ a little the code and now it works,
I suspect the problem was given by me calling pdf.SetFont to set the font for single strings, and then calling again with the same parameters to set the variables.. anyway, all working fine now! thank you! Giulio Mastrosanti BitBazar srl 06 39737052 / 06 39725787 On 25 ott 2017, 19:05 +0200, Christian Schmitz <supp...@monkeybreadsoftware.de>, wrote: > > > > > TimesBoldHandle=pdf.SetFont("Times", pdf.kfsBold, 20.0, true, pdf.kcp1252) > > TimesHandle=pdf.SetFont("Times", pdf.kfsItalic, 20.0, true, pdf.kcp1252) > > Are you inside a page? > > > dim pdf as new DynaPDFMBS > > call pdf.CreateNewPDF(nil) > call pdf.Append > > dim TimesBoldHandle as integer = pdf.SetFont("Times", pdf.kfsBold, 20.0, > true, pdf.kcp1252) > dim TimesItalicHandle as integer = pdf.SetFont("Times", pdf.kfsItalic, 20.0, > true, pdf.kcp1252) > dim TimesHandle as integer = pdf.SetFont("Times", pdf.kfsNone, 20.0, true, > pdf.kcp1252) > > > This works here fine. > > > > > the problem is that in my software, both TimesBoldHandle and > > TimesBoldHandle will contain a value of -67108964, and the font change is > > not working > > Negative numbers are error numbers and if you have an error event, you get a > message. > > Sincerely > Christian > > -- > Read our blog about news on our plugins: > > http://www.mbsplugins.de/ > > > _______________________________________________ > Mbsplugins_monkeybreadsoftware.info mailing list > mbsplugins@monkeybreadsoftware.info > https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info