Hi, Can anyone please help me with this? I am generating a word and pdf file at the same time.Using the below code I see that the border is getting highlighted in PDF file but not in the Word file.
I need to edit and convert the generated word file back to PDF. I have only set the header for 'Standard' pagestyle. Can I again read the edited word file and highlight the border in header and convert back to PDF so that the resultant PDF contains the Header border? If so, Can anybody please help about the way to accomplish this? Thanks again Ravi ---------- Forwarded message ---------- From: ravi shankar <[EMAIL PROTECTED]> Date: Dec 16, 2007 10:07 PM Subject: Highlighting Borders of Header using Java To: [email protected] 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]
