Gerunds and infinitives can replace a noun as the object of a verb. Whether we use a gerund or an infinitive depends on the main verb in the sentence.
I expect to have the report done by Friday. -infinitive
I anticipate having the report done by Friday. -gerund
verb + -ing
Example: I enjoy swimming every morning.
to + verb
Example: I like to swim every morning.