Text Format code problem...

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

lidds
User
Posts: 514
Joined: Sat May 16, 2009 1:55 pm

Text Format code problem...

Post by lidds »

For some reason the following text format code is not working, I have checked in your manual and I think the code is correct.

Code: Select all

Me.pdfView.SetProperty("Commenting.TextBox.Styles[0].TextFormat.FColor", RGB(255, 255, 0), 0)
Me.pdfView.SetProperty("Commenting.TextBox.Styles[0].TextFormat.FontSize", 14, 0)
Me.pdfView.SetProperty("Commenting.TextBox.Styles[0].TextFormat.FontName", "Tahoma", 0)
Me.pdfView.SetProperty("Commenting.TextBox.Styles[0].TextFormat.Bold", 0, 0) ' 1,0) is bold
Me.pdfView.SetProperty("Commenting.TextBox.Styles[0].TextFormat.Italic", 0, 0) ' 1,0) is italic
Thanks in advance

Simon
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: Text Format code problem...

Post by Vasyl - PDF-XChange »

Hi Simon.

Please fix your code to:
Me.pdfView.SetProperty("Commenting.TextBox.Styles[0].TextFormat.Char.FColor", RGB(255, 255, 0), 0)
...

Best Regards.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.