Hewlett-Packard Co's quarterly results beat expectations on solid demand for personal computers and servers and a resurgence in its printing business, and the company raised its full-year outlook.

The world's largest technology company by sales reported a net profit of $2.2 billion, or 91 cents a share, in the fiscal second quarter ended April 30, up from $1.7 billion, or 71 cents a share, a year ago.

Excluding items, profit was $1.09 a share. Analysts on average had expected a $1.05 a share, according to Thomson Reuters I/B/E/S.

Net revenue rose 13 percent to $30.8 billion, compared with Wall Street's forecast of $29.8 billion.

Shares of HP, which last month agreed to buy mobile phone maker Palm Inc for $1.2 billion , rose to $47.51 in after-hours trading after closing at $46.79.

HP shares are down about 8 percent for the year. By contrast, shares of International Business Machines Corp are about flat, and Dell Inc shares have climbed about 6 percent over the same period.

(Reporting by Franklin Paul; Editing by Richard Chang)