1. Sivaprakash BKR
  2. PowerBuilder
  3. Monday, 17 February 2020 05:54 AM UTC

Hello

Using Colour Laser Printers
1.   Xerox Workcentre 7120 PCL 6
2.   Epson WF-C869R Series

We design a datawindow to print in Epson printer and then use the same datawindow to print in Xerox Workcentre printer.   In Xerox printer we see all the columns shifted towards left by 0.3 mm.  Since boarders are already printed [ pre-printed form], printing a few characters out of the boards makes things worse.

Tried printing it to a pdf file and then printing the pdf file to Xerox printer.  Same issue.  

Is there any way to print a datawindow report to make it print in all printers perfectly?  Have anyone tried and succeeded?  

Any solution/suggestion to try is welcome, as this is a long pending issue which I try to solve.  Currently, we develop one datawindow for each computer/printer combination.  Maintaining many datawindows for one report is becoming tedious, and many times we miss to modify a datawindow that makes things worse. 

Happiness Always
BKR Sivaprakash

 

David Peace (Powersoft) Accepted Answer Pending Moderation
  1. Tuesday, 18 February 2020 14:01 PM UTC
  2. PowerBuilder
  3. # 1

Some years ago we used to send printer controls to the printers to programatically setup printer margins etc in order to get round these sorts of problems. You would need to find out what PCL controls are neded and then have these sent tot he print job immediately after a page throw before the DW report. Typically this throws a blank page at the start which is anoying, but does sort the printer out.

The bottom line is that every printer is different and you either live with it or work hard to get round the differences.

Regards

David

Comment
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Monday, 17 February 2020 14:43 PM UTC
  2. PowerBuilder
  3. # 2

review the printer settings and printer driver settings.  one of the two printer probably has a non-standard margin setting.  It is possible that if you turn off the printer and back on then it will reset if it was set by another application.  

Comment
  1. Sivaprakash BKR
  2. Tuesday, 18 February 2020 05:29 AM UTC
1. Went through all possible settings in the driver. We can't see any margin settings. Since this report is on A4 paper size, we didn't have to do much in the printer settings.

2. Switch off / on. Done many times, in fact, we moved the printer from the original location to nearby locations too, suspecting something in the network. Printing done from this application only, once it was switched on.
  1. Helpful
  1. Sivaprakash BKR
  2. Tuesday, 18 February 2020 07:03 AM UTC
A decade-old conversation,

https://answers.sap.com/questions/7607131/printing-of-data-get-distorted-when-changing-print.html

If what Don Williams says is still relevant then one cannot print the same report perfectly, without tweaking, in all printers, it seems.

  1. Helpful
There are no comments made yet.
René Ullrich Accepted Answer Pending Moderation
  1. Monday, 17 February 2020 07:26 AM UTC
  2. PowerBuilder
  3. # 3

Hi Sivaprakash,

I guess the problem is that differnt printer drivers produces different output. So I think it is not a problem with Powerbuilder or Datawindows. Do you have same problem if you try to print with Word?

If it is only a little bit of shifting maybe it helps if you change the datawindow print margins at runtime depending on printer?

Another way not to develop datawindow for different printers: Write some "calibration tool" to set and store problematic key values like margins, column widths for each printer and change this values at runtime.

HTH,

René

Comment
  1. Sivaprakash BKR
  2. Monday, 17 February 2020 12:58 PM UTC
If this is the case, this issue should be there for developers using other tools too. I've seen a few applications that print the same way in all printers. Don't know how they achieve this.
  1. Helpful
  1. Sivaprakash BKR
  2. Monday, 17 February 2020 12:59 PM UTC
Just thinking, whether this is a PowerBuilder specific issue or a universal issue.
  1. Helpful
  1. Sivaprakash BKR
  2. Wednesday, 19 February 2020 02:48 AM UTC
Don't know what happened in these two /three days. The print from PDF file (pdf file created through nitro pdf) shifts to top instead of (earlier) left in both the printers. But the print is in almost identical position. Don't remember changing any settings in driver or nitro. Don't know what will happen in another two days.....



In the meantime will check with more reports/printers.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.