Bug 166734 Target is opened in the new window even choose the same window when preview in PDF [00]
Description: Target is opened in the new window even choose the same window. Build number: 2.1.2.v20061205-0710 Steps to reproduce: 1. New a report target.rptdesign, insert several items. 2. Preview it in Web Viewer. 3. New a report, insert a label 4. Select the label, select Property Editor->Hyperlink, Tick Drill-through 5. In step1, tick report document, select target.rptdocument from your folder. In step4, tick Same Window. 6. Preview report in PDF, click the link. Expected result: Target is opened in the same window. Actual result: Target is opened in the new window. Error log: N/A
engine/org.eclipse.birt.report.engine.emitter.pdf/src/org/eclipse/birt/report/engine/emitter/pdf/PDFEmitter.java
Graphics2D g2 = template.createGraphics(new Float(width).floatValue(), new Float(height).floatValue());
				            
				            PrintTranscoder prm = new PrintTranscoder();
				            prm.addTranscodingHint( PrintTranscoder.KEY_SCALE_TO_PAGE, new Boolean(true) );
				            prm.transcode(ti, null);
				            PageFormat pg = new PageFormat();
				            Paper pp= new Paper();
				            pp.setSize(width, height);
				            pp.setImageableArea(0, 0, width, height);
				            pg.setPaper(pp); 
				            prm.print(g2, pg, 0); 
				            g2.dispose(); 
	
				            cb.addTemplate(template, new Float(x).floatValue(), new Float(y).floatValue());
						}
						
					} catch (Exception e) {
						e.printStackTrace();
					}
					
				}
			} catch (BadElementException bee)
			{
				logger.log( Level.WARNING, bee.getMessage( ), bee );
			} catch (IOException ioe)
			{
				logger.log( Level.WARNING, ioe.getMessage( ), ioe );
			} catch (DocumentException de)
			{
				logger.log( Level.WARNING, de.getMessage( ), de );