function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SforcehariSforcehari 

Send Vfpage to Printer Directly

Hai to Salesforce,

 

       Can you please help me to Send Vfpage to Printer directly.

 

       I am using windlow.Print() function,but is navigating to Another page.please help me is there any other way to print directly to printer.

 

 

Regards

Haribabu

bob_buzzardbob_buzzard

I doubt you'll be able to send the page directly to the printer.  This is the kind of thing that a browser will expect a user to make the decision on, rather than allowing the page to force the printing.  As far as I'm aware, window.print is the best that you can do.