Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0005558
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] B. User interfaceminoralways2008-10-17 11:102009-06-17 18:38
ReporternetworkbView Statuspublic 
Assigned Toiperdomo 
PriorityimmediateResolutionno change requiredFixed in Version
StatusclosedFix in branchpiFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabaseAnyJava version1.5
OS VersionDatabase versionAnt version1.7.0
Product Version2.40SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0005558: Direct print option works only in specific configurations

DescriptionWe have been able to use direct print option in some environments, specifically internet explorer + acrobat reader, but not in most of them. By use we mean that the pdf was opened and print dialog of the application appeared.

Using firefox + kpdf | xpdf | acrobat there was no luck. Pdf file gets simply opened, but no print dialog appears.
Steps To Reproduce1. Go to Application Dictionary || Report and Process || Report & Process.
2. Select RptC_Invoice
3. Check Direct Print
4. Go to any Sales Order
5. Click on the print button on the header
6. PDF gets opened.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0007025 closediperdomo Parameter and "loading" Windows do not close when runing a process 
related to design defect 0009121 acknowledgedTriage Platform Base Refactor Print & Email component 
depends on backport 0005593 closediperdomo Direct print option works only in specific configurations 

-  Notes
(0017310)
iciordia (manager)
2009-06-15 15:32

We have tested direct print in customer environment (IE7) and it works. 2nd level support will get more information from customer side.

It fails on FF but we will fix this bug with standard priority (high for this bug).

Ismael
(0017338)
iciordia (manager)
2009-06-16 11:04

Tested in the customer side (2.40 MP3) it does not work
(0017345)
dbaz (developer)
2009-06-16 12:55

Please do the following test in 2.40 (latest version) and check the following:

Edit the file src/org/openbravo/erpCommon/businessUtility/PrinterReports.html

There are two functions

function printReport(pagina) {
  abrirPDF(pagina, 'PDF');
  return true;
}

and

function printReport(pagina) {
  Pdf1.printWithDialog();
}

add the following alerts, so the functions should be as

function printReport(pagina) {
  alert('isPrintPreview');
  abrirPDF(pagina, 'PDF');
  return true;
}

and

function printReport(pagina) {
  alert('isDirectPrint');
  Pdf1.printWithDialog();
}

And then do the steps to reproduce.

Reassign me the bug telling me your results.

Thanks
(0017364)
dbaz (developer)
2009-06-16 19:33

It seems to be a problem related with the fix of

https://issues.openbravo.com/view.php?id=7025 [^]

Since in revisions before

https://code.openbravo.com/erp/stable/2.40/rev/0f4a07dd8b4d [^]
https://code.openbravo.com/erp/stable/2.40/rev/499880ca72d7 [^]
https://code.openbravo.com/erp/stable/2.40/rev/c7387fabc62f [^]
https://code.openbravo.com/erp/stable/2.40/rev/0b41cc259237 [^]

it works but just after these commits it fails
(0017369)
dbaz (developer)
2009-06-16 20:01

There are two problems:

1. Despite for networkb works, for me although I do the steps of reproduce, it seems that "direct print" option doesn't run because for me it always enters by the first function printReport(pagina) { of the previous code. To test purposes and avoid this problem, I have changed
var direct = (strDirectPrinting!="")?"Y":"N";
to
var direct = (strDirectPrinting!="")?"Y":"Y";
in function abrirPDFSession(strPagina, strDirectPrinting, strHiddenKey, strHiddenValue, bolComprobarCambios) {

2. Once the first problem is avoided, another problem appears, which is related to the previous comment. The method to invoke pdfs has changed and has to be reviewed in order to change the call
(0017398)
iperdomo (reporter)
2009-06-17 18:38

The direct printing option should be handled by the refactored Print & Email component.

- Issue History
Date Modified Username Field Change
2008-10-17 11:10 jacoboGiralt New Issue
2008-10-17 11:10 jacoboGiralt Assigned To => cromero
2008-10-17 11:10 jacoboGiralt sf_bug_id 0 => 2174290
2008-10-20 11:50 psarobe Status new => scheduled
2008-10-20 11:50 psarobe fix_in_branch => trunk
2008-11-10 13:04 cromero Assigned To cromero => rafaroda
2008-11-13 21:59 rafaroda Assigned To rafaroda => pheenan
2009-03-24 10:54 AinhoaPagola Assigned To pheenan => gmauleon
2009-06-09 18:26 networkb Reporter jacoboGiralt => networkb
2009-06-09 18:26 networkb Priority normal => immediate
2009-06-09 18:26 networkb fix_in_branch pi =>
2009-06-12 12:40 gmauleon Assigned To gmauleon => iciordia
2009-06-15 15:32 iciordia Note Added: 0017310
2009-06-15 15:32 iciordia Status scheduled => feedback
2009-06-16 11:03 iciordia Assigned To iciordia => dbaz
2009-06-16 11:04 iciordia Status feedback => scheduled
2009-06-16 11:04 iciordia Note Added: 0017338
2009-06-16 11:04 iciordia fix_in_branch => pi
2009-06-16 12:55 dbaz Note Added: 0017345
2009-06-16 12:55 dbaz Assigned To dbaz => networkb
2009-06-16 13:14 dbaz Assigned To networkb => dbaz
2009-06-16 19:33 dbaz Note Added: 0017364
2009-06-16 19:34 dbaz Relationship added related to 0007025
2009-06-16 20:01 dbaz Note Added: 0017369
2009-06-17 11:10 dbaz Assigned To dbaz => iperdomo
2009-06-17 18:37 iperdomo Relationship added related to 0009121
2009-06-17 18:38 iperdomo Status scheduled => closed
2009-06-17 18:38 iperdomo Note Added: 0017398
2009-06-17 18:38 iperdomo Resolution open => no change required


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker