Support both type of printing offline and online