L
lee
Hi,
I want to insert a page break after every hyperlink, if I try the
InsertBreak then it replaces the hyperlink text/link, how do it make
it happen after this link ?
Many Thanks,
Lee.
Hyperlinks hyplnks;
Hyperlink hyplnk;
Range rg = testDoc.GetContent();
hyplnks.AttachDispatch(rg.GetHyperlinks());
for (long j=1;j<=hyplnks.GetCount()-1;j++)
{
COleVariant n = COleVariant((long)j);
hyplnk.AttachDispatch(hyplnks.Item(n));
Range oSecRange = hyplnk.GetRange();
oSecRange.InsertBreak(COleVariant((long)7)); // 7 = wdPageBreak
}
I want to insert a page break after every hyperlink, if I try the
InsertBreak then it replaces the hyperlink text/link, how do it make
it happen after this link ?
Many Thanks,
Lee.
Hyperlinks hyplnks;
Hyperlink hyplnk;
Range rg = testDoc.GetContent();
hyplnks.AttachDispatch(rg.GetHyperlinks());
for (long j=1;j<=hyplnks.GetCount()-1;j++)
{
COleVariant n = COleVariant((long)j);
hyplnk.AttachDispatch(hyplnks.Item(n));
Range oSecRange = hyplnk.GetRange();
oSecRange.InsertBreak(COleVariant((long)7)); // 7 = wdPageBreak
}