Although Ivomec is a broadspectrum dewormer it is not effective against tape worms. It is usually used as a heartworm preventative however its use should only be according to the instructions of the vet. If you are not sure whether your dog has heartworm or not, better see your vet before using ivomec.
Dogs with heartworms can easily get killed if given ivomec.