@Anil984,
Welcome to HP Forums, this is a great place to get support, find answers and tips.
Thank you for posting your query, I'll be more than glad to help you.
I understand that you are unable to print from your HP LaserJet 1018 Printer.
This issue could occur if the printer is offline.
Let's go through a few steps to resolve this issue.
And here's the step by step guide for you in the link: Printer is Offline (Windows)
Let me know how this works.
You have a good day ahead.
Rainbow23 - HP Support.