In the year-earlier quarter, the company had net income of $3.9 billion.
That was in contrast to a loss of $33 million, or 1 cent a share, for the year-earlier quarter.
Its net income rose 32 percent, to $603 million, compared with the year-earlier quarter.
Its quarterly sales rose to $9.29 billion, an increase of 15 percent from the year-earlier quarter, and about higher than analysts had expected.
That compares with a profit of $38 million in the year-earlier quarter.
Sales were $229.1 million, up from $227.3 million in the year-earlier quarter.
The company reported profit of nearly $1.99 billion, up 17 percent from $1.71 billion in the year-earlier quarter.
Revenue for the imaging and printing group increased 11 percent from the year-earlier quarter, to $6.1 billion.
Personal computer revenues fell 29 percent from the year-earlier quarter, to $2.8 billion, and the unit lost $70 million.
Net income rose 31 percent, to $561 million, or 21 cents, compared with the year-earlier quarter.