oDoc.NewLine () is a method that requires a parent object. Pass the anchored frame to the DrawLine function and use this:
oDoc.NewLine (oFrame);
oDoc.NewLine () is a method that requires a parent object. Pass the anchored frame to the DrawLine function and use this:
oDoc.NewLine (oFrame);