We investigate an optimal financing and dividend control problem of an insurance company facing fixed and proportional transaction costs. The goal of the company is to maximize the expected present value of future dividends after deduction of the equity issuance until the time of bankruptcy. We formulate the problem as a mixed classical-impulse control and discuss the problem using the HJB dynamic programming approach. A viscosity solution is considered and its uniqueness is established. We also give results for the regularity and structure of the value function and the optimal policy of the control problem.