(Reuters) - HP Inc HPQ.N reported better-than-expected results in what its chief executive termed a "breakthrough" quarter as both its PC and printer businesses grew for the first time since 2010.

The Hewlett-Packard (HP) logo is seen as part of a display at the Microsoft Ignite technology conference in Chicago, Illinois, May 4, 2015. REUTERS/Jim Young/File Photo

Shares of the company rose 3.6 percent to $19.7 after the bell on Wednesday.

Revenue from personal systems business, which makes notebooks, desktops and workstations, jumped 9.6 percent to $7.66 billion in the second quarter ended April 30. The business accounts for nearly two-thirds of the company’s total sales.

Worldwide shipments of PCs rose for the first time in five years in the first quarter of 2017, with HP taking the top spot, according to research firm IDC.

The PC market has benefited as more businesses replace or upgrade their older systems as part of their refresh cycle.

The company’s printer and copier business also posted its first rise in revenue since 2011, driven partly by strong demand for HP Sprocket, a handheld photo printer.

“It’s been a long time since we’ve been able to say that,” Chief Executive Officer Dion Weisler said on a post-earnings call, referring to the growth in its printing business.

Last year, HP bought Samsung Electronics Co's 005930.KS printer business for $1.05 billion to bolster the unit.

However, the company warned about a “little bit of uncertainty” in the PC business for the next two quarter as the company struggles to raise prices on products sold to corporate customers.

The company’s net earnings from continuing operations fell to $559 million, or 33 cents per share, in the latest quarter from $660 million, or 38 cents per share, a year earlier.

Excluding items, the company earned 40 cents per share. Analysts were expecting adjusted earnings of 39 cents per share according to Thomson Reuters I/B/E/S.

Net revenue rose about 7 percent to $12.39 billion, topping analysts’ estimate of $11.94 billion.

The company also forecast full-year adjusted profit of $1.59-$1.66 per share, while analysts are estimating $1.62 per share.

Up to Wednesday’s close, shares of the Palo Alto, California-based company had risen 28.1 percent this year.