PDF-XChange Viewer SDK - Typewriter Font Always RED

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

GregWente
User
Posts: 9
Joined: Wed May 05, 2010 6:26 pm

PDF-XChange Viewer SDK - Typewriter Font Always RED

Post by GregWente »

I had written code within my VB.NET application and once upon a time it was working just fine. I do not believe the code was changed but no matter what I do, the Typewriter font is always RED. I used to be able to change the color, font type, lineout and font size. Now I get nothing but RED.

What could I be doing wrong?

Code:

Call Viewer1.SetProperty("Tools.Active", "TypeWriter")
Call Viewer1.GetProperty("Commenting.TypeWriter.Styles.Count", DataOut, 0)
count = DataOut
For i = 0 To count - 1
Call Viewer1.GetProperty("Commenting.TypeWriter.Styles[" & Trim(Str(i)) & "].ID", DataOut, 0)
Next i
Call Viewer1.SetProperty("Commenting.TypeWriter.Styles[#" & Trim(Str(DataOut)) & "].TextFormat.Char.Bold", 1, 0)
Call Viewer1.SetProperty("Commenting.TypeWriter.Styles[#" & Trim(Str(DataOut)) & "].TextFormat.Char.FontSize", 12, 0) 'Default 12
Call Viewer1.SetProperty("Commenting.TypeWriter.Styles[#" & Trim(Str(DataOut)) & "].TextFormat.Char.Italic", 1, 0)
Call Viewer1.SetProperty("Commenting.TypeWriter.Styles[#" & Trim(Str(DataOut)) & "].TextFormat.Char.Fcolor", "Black", 0)
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: PDF-XChange Viewer SDK - Typewriter Font Always RED

Post by Vasyl - PDF-XChange »

Hi, GregWente.

We cannot reproduce this issue with your code.
Please update your copy of our SDK to the latest version - it may resolve your problem.

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.