1. Because she knows the fact, she will not invite him.

2. Knowing the fact, she will not invite him.

3. Having known the fact, she will not invite him.

(Which one is similar to #1? #1 can be changed into #2, right? What about #3?)

4. Because she knew the fact, she will not invite him.

5. Because she has known the fact, she will not invite him.

6. Having known the fact, she will not invite him.
(#4 and $5 can be changed into $6, right?)

7. Because she will know the fact, she will not invite him.

8. Knowing the fact, she will not invite him.
(What about #7? Is this grammatical? Can #7 be changed into #8?)

1 and 2 are fine, but 3 is not correct; the verb tenses are not sequenced correctly.

4, 5, 6, and 7 have incorrectly sequenced tenses, too.

8 is fine.

http://grammar.ccc.commnet.edu/grammar/sequence.htm
Check out the charts for correct sequence of tenses.

1. Because she knows the fact, she will not invite him.

2. Knowing the fact, she will not invite him.

#1 and #2 have a similar meaning. In both sentences, the reason for her not inviting him is that she knows the fact.

3. Having known the fact, she will not invite him.

In sentence #3, "having known" indicates that she had already acquired the knowledge of the fact before making the decision not to invite him.

4. Because she knew the fact, she will not invite him.

#4 states that she knew the fact in the past, and based on that knowledge, she decided not to invite him. The use of "because" implies a cause-and-effect relationship.

5. Because she has known the fact, she will not invite him.

#5 is similar to #4 but uses the present perfect tense ("has known") to emphasize that she still possesses the knowledge of the fact.

6. Having known the fact, she will not invite him.

#6 is similar in meaning to #4 and #5. "Having known" suggests that she acquired the knowledge of the fact before making her decision not to invite him.

7. Because she will know the fact, she will not invite him.

#7 is grammatically correct, but the meaning is different from the previous examples. It suggests that she will acquire the knowledge of the fact in the future and, based on that future knowledge, will decide not to invite him.

8. Knowing the fact, she will not invite him.

#8 is grammatically correct and has a similar meaning to #2. It implies that she already possesses the knowledge of the fact and, based on that knowledge, will not invite him.