How to Set Border.Style and other line properties

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

rmcmanamy
User
Posts: 46
Joined: Thu Jun 23, 2005 1:01 pm

How to Set Border.Style and other line properties

Post by rmcmanamy »

The Border.Width seams to work fine but I saw someplace else in the forum where it showed the Border.Style and that one it fails on me.

CoPDFXCview1.SetProperty("Commenting.Line.Styles[0].Border.Width", 2.0, 0) - Works

CoPDFXCview1.SetProperty("Commenting.Line.Styles[0]Border.Style", 1, 0) - Fails

Also how do you set the Line Starting and Ending Styles?
Rodney McManamy
CADzation
AutoCAD to PDF and DWF Solutions
rmcmanamy@cadzation.com
http://www.cadzation.com
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: How to Set Border.Style and other line properties

Post by Vasyl - PDF-XChange »

Please look to our ActiveX Help file (by location "Reference\Named Items\Named Objects\Commenting\Line").
And example:
CoPDFXCview1.SetProperty("Commenting.Line.Styles[0].Border.Width", 5, 0);
CoPDFXCview1.SetProperty("Commenting.Line.Styles[0].Border.Type", "Dashed", 0);
CoPDFXCview1.SetProperty("Commenting.Line.Styles[0].Border.DashType", "Dot3", 0);
CoPDFXCview1.SetProperty("Commenting.Line.Styles[0].Start", "Square", 0);
CoPDFXCview1.SetProperty("Commenting.Line.Styles[0].End", "Circle", 0);
CoPDFXCview1.SetProperty("Commenting.Line.Styles[0].SColor", "red", 0);
CoPDFXCview1.SetProperty("Commenting.Line.Styles[0].FColor", "yellow", 0);
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.
rmcmanamy
User
Posts: 46
Joined: Thu Jun 23, 2005 1:01 pm

Re: How to Set Border.Style and other line properties

Post by rmcmanamy »

Thanks. I was looking in the Chm help file which I didn't notice hasn't been updated since last year. Sorry about that. Thanks once again.
Rodney McManamy
CADzation
AutoCAD to PDF and DWF Solutions
rmcmanamy@cadzation.com
http://www.cadzation.com
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: How to Set Border.Style and other line properties

Post by John - Tracker Supp »

:)
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com