Well, there are several ways - some you will maybe like, and some you will not like. I have seen them all done with varying degrees of success.
1. Pen her up and hook a rope around one of her back ankles. Throw it up over a rafter and haul the leg up - good and high. You'll quickly tire of this if she does not take to the calf in a few days. Usually the cow tires before you do.
2. Milk her almost all the way out - maybe her bag is sore. Pail, bottle or tube the calf to make sure it gets what it needs.
3. Pen her and lay a licking on her every time she beats up on the calf. After a couple of these she will not move if you simply threaten her. Just stand there with the stick over your head and she usually will fraaze while the calf sucks. Not always the best choice - but some are very stubborn.
4. Hobble her. But watch out if she really goes crazy - she may fall on the calf - or you if you are in the way.
5. Put her in the squeeze - it works for a while, but if she does not take quickly you will tire of this.
6. Forget it - pull the calf and pail bunt it - sell the heifer - last resort - but it really feels good to stop beating your head against the brick wall.
Good luck - I have enough cattle that none get more than a couple of days of this crap before someone - not me or the wife - goes for a trip. If you have only one or two, and work out it, still becomes a pain and #6 starts to look like the best choice.
Have fun - fortunately this is not an overly common occurence.