Hi,
I am using the following code to make the header top border visible. I
get the header content correctly but the lines are not visible. Please
help
Code:
-------------------------------
XNameAccess PageStyles = (XNameAccess) AnyConverter.toObject (new
Type(XNameAccess.class),StyleFamNames.getByName("PageStyles"));
StdStyle = (XStyle) AnyConverter.toObject(
new Type(XStyle.class),PageStyles.getByName("Standard"));
XPropertySet PropSet = (XPropertySet)UnoRuntime.queryInterface(
XPropertySet.class, StdStyle);
PropSet.setPropertyValue("HeaderIsOn", new Boolean(true));
BorderLine bl =
(BorderLine)UnoRuntime.queryInterface(BorderLine.class,PropSet.getPropertyValue("HeaderTopBorder"));
bl.Color=30;
bl.InnerLineWidth=(short)2;
bl.OuterLineWidth=(short)2;
//set the borderline object back to the property
PropSet.setPropertyValue("HeaderTopBorder", bl);
---------------------------
Next I set the header text which is showing up in my doc file but
border is not visible. When I convert the same to PDF, I can see the
borders in the header but in the corresponding Doc file they are not
getting highlighted. Please advise.
Thanks
Ravi
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]