Skip to main content

Uniface 9: Printing from DSP

  • November 19, 2018
  • 2 replies
  • 0 views

Jan Cees Boogaard

Printing from DSP

Author: pritapretty1@gmail.com (prettypriya)

hi,

how do i print the data from a textarea in a dsp onto the printer...Thanks in advance

2 replies

Jan Cees Boogaard

Printing from DSP

Author: pritapretty1@gmail.com (prettypriya)

hi,

how do i print the data from a textarea in a dsp onto the printer...Thanks in advance

... hmm .. that "feature" come with your browser:

If you want to print a page from the DSP, then let the browser "Print" (often found in the FILE tab!)

Its' ugly, doesn't fit to many needs and yet it works! If you want to have cleaner output from the DSP data, then you'll need to make another DSP which shows the data in the desired way.

-GHAN-


Author: -GHAN- (hansen@ahp-gmbh.de)

Jan Cees Boogaard

Printing from DSP

Author: pritapretty1@gmail.com (prettypriya)

hi,

how do i print the data from a textarea in a dsp onto the printer...Thanks in advance

Following on from Ghan's post, you can also use CSS that will only be used when printing.

Something like this in your head tag:


<link rel="stylesheet" type="text/css" media="print" href="print.css" />


In print.css you could then hide everything except the textarea that you want to print.

This blog post goes into detail on how to create a "for print" stylesheet: www.alistapart.com/articles/goingtoprint/

 

Regards,

James


Author: James Rodger (james.r.rodger@gmail.com)