Print preview in Landscape
Hi
I have a strange case. I have google through the net still not able to find any proper solution.
Issue: : In my application i have reports. When i do print preview, the reports get displayed in portrait format. Is there any way through which i can set the window's default page set up to landscape (through JSP/CSS/Javascript).
~Aman
Set the printer properties to landscape. Also, there may be an issue with auto-rotate.
Similar Messages
-
Iphoto printing - preview is landscape, but prints out portrait
This is a recurring issue when I print photos. The preview shows a landscape oriented picture, but it prints in portrait orientation. How do I correct this?
The settings for the current photo are as listed:
Brother MCF-J425W
US Letter
Color
Aspect Ratio: Custom
Photo Size: 4.8 x 6.8
iPhoto 9.6
OX S YosemiteTry the following:
1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
User/Home/Library/ Preferences folder.
2 - delete the contents the following folder: User/Library/Containers/com.apple.iPhoto
3 - reboot, launch iPhoto and try printing again.
NOTE: For Mavericks and Yosemite, go to your Home folder and use the View ➙ Show View Options menu to bring the this window:
where you can check the Show Library Folder checkbox. -
Smart forms Print preview problem
Hi
Experts,
I am working in CRM2007. I am creating number of different type Smart forms for our client requirement. All Smart Forms working fine in WEB GUI. In Web GUI there have two buttons; one is print buttons and another one is Print Preview buttons. When we press print buttons it is directly go to printer for printing service order or service invoice or sales order or sales invoice whatever user is selected. Means working fine print buttons. And in case when we press print preview button it is open selected forms in PDF format; it is also work fine in our desire. But problem is here PDF format front size; which is very small. And after looking the PDF format if we select for print out of this PDF form; the print out orientation is Landscape and front size is very small. Now my question to all of experts u2026u2026u2026.How I change PDF front size and orientation? u2026u2026u2026u2026u2026u2026any type of BSP Enhancement or functional setting is required? Please Experts help meu2026u2026u2026u2026u2026u2026u2026u2026..
Regards
Tarapada D.please CRM Experts give me some answer!!!!!!!!!!!!!!!
-
SAPScript - Print Preview 2 Pages - Physical Print overlap as 1 Page
HI Experts,
I have a problem with Invoice SAPScript Printing - where the print preview is good with 2 Pages,
But when it physical prints out - Only 1 page and overlapping the Second page content to the first.
Any idea where did I miss out?
Thank you in Advance.
Regards,
CWLIMHI ,
Sheelesh is right.
I had both SAPScript and Smartform issue with the overlapping printing.
What you need to do is to check your page format to see if it is the correct size for the specific printer.
If it is too big for the printer paper size - it will overlap the printing as 1 page.
For example : A4 Lanscape printing on normal HP Laser Printer - DINA4 Landscape should be used.
Or at least when you define your own page format - refer to the correct size and orientation.
HOpe this helps.
Thank you all -
My Free Java Print Preview Class
Ok, for 2 weeks now ive been in agony trying to program a
print preview for a program im writing for work.
Alot, of the free print previews online are way complicated
and crazy and hard to implement.
Either that, or these forums and "how tos" online never
answered the question or were to general or hard
to follow for a beginner.
I even posted a $40 question on google answers on how to
do this and never got an answer.
If ive had this problem others must have also
so to save them the trouble i went through, here is a good
starting point.
I just finished this class.
All you have to do is pass it a JPanel (or i guess any component
with a " .paint(Graphics g) " ).
new PrintPreview( component );all you might have to change is JInternalFrame to JFrame which is
easy. also, the fit to page doesnt work yet but thats easy to code.
please, i encourage comments and polite criticism.
im just starting out so i know this isnt perfect but i posted
it with good intentions.
Hope it helps out some out there.
import javax.swing.*;
import java.awt.*;
import javax.swing.event.*;
import java.awt.event.*;
import java.awt.print.*;
import java.lang.Math.*;
import java.awt.image.*;
public class PrintPreview extends JInternalFrame implements ActionListener{
public PrintPreview(Component pc){
super("Print Preview", true, true, true, true);
PC = pc;
// buttons
pf1 = new JRadioButton("Portrait");
pf1.setActionCommand("1");
pf1.setSelected(true);
pf2 = new JRadioButton("Landscape");
pf2.setActionCommand("2");
pf.add(pf1);
pf.add(pf2);
pf1.setBackground(Pref.tbgc);
pf2.setBackground(Pref.tbgc);
cp.setBackground(Pref.tbgc);
preview.addActionListener(this);
print.addActionListener(this);
// set
pp.setPreferredSize(new Dimension(460, 460));
pp.setBorder(BorderFactory.createLineBorder (Color.black, 2));
pp.setBackground(Pref.tbgc);
hold.setPreferredSize(new Dimension(200, 280));
hold.setBorder(BorderFactory.createLineBorder (Color.black, 2));
hold.setBackground(Pref.tbgc);
// make main panel
mp.setBackground(Pref.tbgc);
GridBagLayout gridbag = new GridBagLayout();
GridBagConstraints constraints = new GridBagConstraints();
mp.setLayout(gridbag);
// make hold panel
GridBagLayout g1 = new GridBagLayout();
GridBagConstraints c1 = new GridBagConstraints();
hold.setLayout(g1);
// DELETE
PF.setOrientation(PF.PORTRAIT);
// GUI
// hold
c1.insets.top = 5;
c1.insets.left = 45;
c1.insets.right = 5;
buildConstraints(c1, 0, 2, 2, 1, 1, 1);
c1.fill = GridBagConstraints.BOTH;
g1.setConstraints(pf1, c1);
hold.add(pf1);
c1.insets.top = 2;
buildConstraints(c1, 0, 4, 2, 1, 1, 1);
c1.fill = GridBagConstraints.BOTH;
g1.setConstraints(pf2, c1);
hold.add(pf2);
c1.insets.left = 5;
c1.insets.right = 0;
c1.insets.top = 25;
buildConstraints(c1, 0, 6, 1, 1, 1, 1);
c1.fill = GridBagConstraints.BOTH;
g1.setConstraints(xsl, c1);
hold.add(xsl);
c1.insets.left = 0;
c1.insets.right = 5;
buildConstraints(c1, 1, 6, 1, 1, 1, 1);
c1.fill = GridBagConstraints.BOTH;
g1.setConstraints(xs, c1);
hold.add(xs);
c1.insets.left = 5;
c1.insets.right = 0;
c1.insets.top = 5;
buildConstraints(c1, 0, 8, 1, 1, 1, 1);
c1.fill = GridBagConstraints.BOTH;
g1.setConstraints(ysl, c1);
hold.add(ysl);
c1.insets.left = 0;
c1.insets.right = 5;
buildConstraints(c1, 1, 8, 1, 1, 1, 1);
c1.fill = GridBagConstraints.BOTH;
g1.setConstraints(ys, c1);
hold.add(ys);
c1.insets.left = 25;
c1.insets.right = 5;
buildConstraints(c1, 0, 10, 2, 1, 1, 1);
c1.fill = GridBagConstraints.BOTH;
g1.setConstraints(cp, c1);
hold.add(cp);
c1.insets.left = 35;
c1.insets.right = 35;
c1.insets.top = 20;
buildConstraints(c1, 0, 12, 2, 1, 1, 1);
c1.fill = GridBagConstraints.BOTH;
g1.setConstraints(ftp, c1);
hold.add(ftp);
c1.insets.left = 35;
c1.insets.right = 35;
c1.insets.top = 25;
buildConstraints(c1, 0, 14, 2, 1, 1, 1);
c1.fill = GridBagConstraints.BOTH;
g1.setConstraints(preview, c1);
hold.add(preview);
c1.insets.bottom = 15;
c1.insets.top = 5;
buildConstraints(c1, 0, 16, 2, 1, 1, 1);
c1.fill = GridBagConstraints.BOTH;
g1.setConstraints(print, c1);
hold.add(print);
constraints.insets.top = 10;
constraints.insets.left = 10;
constraints.insets.bottom = 10;
buildConstraints(constraints, 0, 2, 1, 1, 1, 1);
constraints.fill = GridBagConstraints.NONE;
gridbag.setConstraints(hold, constraints);
mp.add(hold);
constraints.insets.right = 10;
buildConstraints(constraints, 1, 2, 1, 1, 1, 1);
constraints.fill = GridBagConstraints.NONE;
gridbag.setConstraints(pp, constraints);
mp.add(pp);
// display
this.setContentPane(mp);
this.setVisible(true);
this.setResizable(false);
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
setSize(720, 520);
Dimension windowSize = getSize();
setLocation(Math.max(0,(screenSize.width -windowSize.width)/2),
(Math.max(0,(screenSize.height-windowSize.height)/2)));
DESKTOP.desktop.add(this);
try {
this.setSelected(true);
} catch (java.beans.PropertyVetoException e) {}
public void buildConstraints(GridBagConstraints gbc, int gx, int gy, int gw, int gh, double wx, double wy){
gbc.gridx = gx;
gbc.gridy = gy;
gbc.gridwidth = gw;
gbc.gridheight = gh;
gbc.weightx = wx;
gbc.weighty = wy;
public class PreviewPage extends JPanel{
public PreviewPage(){
public void paint(Graphics g){
super.paint(g);
Graphics2D g2 = (Graphics2D)g;
// PORTRAIT
if(PF.getOrientation() == PF.PORTRAIT){
g.setColor(Color.black);
g.drawRect(60, 10, 340, 440);
int x1 = (int)Math.rint( ( (double)PF.getImageableX() / 72 ) * 40 );
int y1 = (int)Math.rint( ( (double)PF.getImageableY() / 72 ) * 40 );
int l1 = (int)Math.rint( ( (double)PF.getImageableWidth() / 72 ) * 40 );
int h1 = (int)Math.rint( ( (double)PF.getImageableHeight() / 72 ) * 40 );
g.setColor(Color.red);
g.drawRect(x1+60, y1+10, l1, h1);
setScales();
int x2 = (int)Math.rint( 1028 / XSC );
int y2 = (int)Math.rint( 768 / YSC );
Image image = new BufferedImage( x2, y2, BufferedImage.TYPE_INT_ARGB);
PC.paint( image.getGraphics() );
g.drawImage(image, x1+60, y1+10, l1, h1, this);
// LANDSCAPE
if(PF.getOrientation() == PF.LANDSCAPE){
g.setColor(Color.black);
g.drawRect(10, 60, 440, 340);
int x1 = (int)Math.rint( ( (double)PF.getImageableX() / 72 ) * 40 );
int y1 = (int)Math.rint( ( (double)PF.getImageableY() / 72 ) * 40 );
int l1 = (int)Math.rint( ( (double)PF.getImageableWidth() / 72 ) * 40 );
int h1 = (int)Math.rint( ( (double)PF.getImageableHeight() / 72 ) * 40 );
g.setColor(Color.red);
g.drawRect(x1+10, y1+60, l1, h1);
setScales();
int x2 = (int)Math.rint( 1028 / XSC );
int y2 = (int)Math.rint( 768 / YSC );
Image image = new BufferedImage( x2, y2, BufferedImage.TYPE_INT_ARGB);
PC.paint( image.getGraphics() );
g.drawImage(image, x1+10, y1+60, l1, h1, this);
public void actionPerformed(ActionEvent e){
// fit to page
if(e.getSource() == ftp){
// preview
if(e.getSource() == preview){
setProperties();
// print
if(e.getSource() == print){
doPrint();
public void setProperties(){
if(pf1.isSelected() == true){
PF.setOrientation(PF.PORTRAIT);
if(pf2.isSelected() == true){
PF.setOrientation(PF.LANDSCAPE);
setScales();
pp.repaint();
public void setScales(){
try{
XSC = Double.parseDouble( xs.getText() );
} catch (NumberFormatException e) { }
try{
YSC = Double.parseDouble( ys.getText() );
} catch (NumberFormatException e) { }
public void doPrint(){
PrintThis();
public void PrintThis(){
PrinterJob printerJob = PrinterJob.getPrinterJob();
Book book = new Book();
book.append( new PrintPage(), PF );
printerJob.setPageable(book);
boolean doPrint = printerJob.printDialog();
if (doPrint) {
try {
printerJob.print();
} catch (PrinterException exception) {
System.err.println("Printing error: " + exception);
public class PrintPage implements Printable{
public int print(Graphics g, PageFormat format, int pageIndex) {
Graphics2D g2D = (Graphics2D) g;
g2D.translate(format.getImageableX (), format.getImageableY ());
disableDoubleBuffering(mp);
System.out.println("get i x " + format.getImageableX ());
System.out.println("get i x " + format.getImageableY ());
System.out.println("getx: " + format.getImageableWidth() );
System.out.println("getx: " + format.getImageableHeight() );
// scale to fill the page
double dw = format.getImageableWidth();
double dh = format.getImageableHeight();
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
setScales();
double xScale = dw / (1028/XSC);
double yScale = dh / (768/YSC);
double scale = Math.min(xScale,yScale);
System.out.println("" + scale);
g2D.scale( xScale, yScale);
((JPanel)PC).paint(g);
enableDoubleBuffering(mp);
return Printable.PAGE_EXISTS;
public void disableDoubleBuffering(Component c) {
RepaintManager currentManager = RepaintManager.currentManager(c);
currentManager.setDoubleBufferingEnabled(false);
public void enableDoubleBuffering(Component c) {
RepaintManager currentManager = RepaintManager.currentManager(c);
currentManager.setDoubleBufferingEnabled(true);
Component PC;
PageFormat PF = new PageFormat();
double XSC = 1;
double YSC = 1;
// gui comp
JPanel mp = new JPanel();
JPanel hold = new JPanel();
JPanel pp = new PreviewPage();
ButtonGroup pf = new ButtonGroup();
JRadioButton pf1;
JRadioButton pf2;
JLabel xsl = new JLabel("X Scale:", JLabel.LEFT);
JTextField xs = new JTextField("1");
JLabel ysl = new JLabel("Y Scale:", JLabel.LEFT);
JTextField ys = new JTextField("1");
JButton ftp = new JButton("Fit to Page");
JCheckBox cp = new JCheckBox("Constrain Proportions");
JButton preview = new JButton("PREVIEW");
JButton print = new JButton("PRINT");
}Ok, for 2 weeks now ive been in agony trying to program a
print preview for a program im writing for work.
Alot, of the free print previews online are way complicated
and crazy and hard to implement.
Either that, or these forums and "how tos" online never
answered the question or were to general or hard
to follow for a beginner.
I even posted a $40 question on google answers on how to
do this and never got an answer.
If ive had this problem others must have also
so to save them the trouble i went through, here is a good
starting point.
I just finished this class.
All you have to do is pass it a JPanel (or i guess any component
with a " .paint(Graphics g) " ).
new PrintPreview( component );all you might have to change is JInternalFrame to JFrame which is
easy. also, the fit to page doesnt work yet but thats easy to code.
please, i encourage comments and polite criticism.
im just starting out so i know this isnt perfect but i posted
it with good intentions.
Hope it helps out some out there.
import javax.swing.*;
import java.awt.*;
import javax.swing.event.*;
import java.awt.event.*;
import java.awt.print.*;
import java.lang.Math.*;
import java.awt.image.*;
public class PrintPreview extends JInternalFrame implements ActionListener{
public PrintPreview(Component pc){
super("Print Preview", true, true, true, true);
PC = pc;
// buttons
pf1 = new JRadioButton("Portrait");
pf1.setActionCommand("1");
pf1.setSelected(true);
pf2 = new JRadioButton("Landscape");
pf2.setActionCommand("2");
pf.add(pf1);
pf.add(pf2);
pf1.setBackground(Pref.tbgc);
pf2.setBackground(Pref.tbgc);
cp.setBackground(Pref.tbgc);
preview.addActionListener(this);
print.addActionListener(this);
// set
pp.setPreferredSize(new Dimension(460, 460));
pp.setBorder(BorderFactory.createLineBorder (Color.black, 2));
pp.setBackground(Pref.tbgc);
hold.setPreferredSize(new Dimension(200, 280));
hold.setBorder(BorderFactory.createLineBorder (Color.black, 2));
hold.setBackground(Pref.tbgc);
// make main panel
mp.setBackground(Pref.tbgc);
GridBagLayout gridbag = new GridBagLayout();
GridBagConstraints constraints = new GridBagConstraints();
mp.setLayout(gridbag);
// make hold panel
GridBagLayout g1 = new GridBagLayout();
GridBagConstraints c1 = new GridBagConstraints();
hold.setLayout(g1);
// DELETE
PF.setOrientation(PF.PORTRAIT);
// GUI
// hold
c1.insets.top = 5;
c1.insets.left = 45;
c1.insets.right = 5;
buildConstraints(c1, 0, 2, 2, 1, 1, 1);
c1.fill = GridBagConstraints.BOTH;
g1.setConstraints(pf1, c1);
hold.add(pf1);
c1.insets.top = 2;
buildConstraints(c1, 0, 4, 2, 1, 1, 1);
c1.fill = GridBagConstraints.BOTH;
g1.setConstraints(pf2, c1);
hold.add(pf2);
c1.insets.left = 5;
c1.insets.right = 0;
c1.insets.top = 25;
buildConstraints(c1, 0, 6, 1, 1, 1, 1);
c1.fill = GridBagConstraints.BOTH;
g1.setConstraints(xsl, c1);
hold.add(xsl);
c1.insets.left = 0;
c1.insets.right = 5;
buildConstraints(c1, 1, 6, 1, 1, 1, 1);
c1.fill = GridBagConstraints.BOTH;
g1.setConstraints(xs, c1);
hold.add(xs);
c1.insets.left = 5;
c1.insets.right = 0;
c1.insets.top = 5;
buildConstraints(c1, 0, 8, 1, 1, 1, 1);
c1.fill = GridBagConstraints.BOTH;
g1.setConstraints(ysl, c1);
hold.add(ysl);
c1.insets.left = 0;
c1.insets.right = 5;
buildConstraints(c1, 1, 8, 1, 1, 1, 1);
c1.fill = GridBagConstraints.BOTH;
g1.setConstraints(ys, c1);
hold.add(ys);
c1.insets.left = 25;
c1.insets.right = 5;
buildConstraints(c1, 0, 10, 2, 1, 1, 1);
c1.fill = GridBagConstraints.BOTH;
g1.setConstraints(cp, c1);
hold.add(cp);
c1.insets.left = 35;
c1.insets.right = 35;
c1.insets.top = 20;
buildConstraints(c1, 0, 12, 2, 1, 1, 1);
c1.fill = GridBagConstraints.BOTH;
g1.setConstraints(ftp, c1);
hold.add(ftp);
c1.insets.left = 35;
c1.insets.right = 35;
c1.insets.top = 25;
buildConstraints(c1, 0, 14, 2, 1, 1, 1);
c1.fill = GridBagConstraints.BOTH;
g1.setConstraints(preview, c1);
hold.add(preview);
c1.insets.bottom = 15;
c1.insets.top = 5;
buildConstraints(c1, 0, 16, 2, 1, 1, 1);
c1.fill = GridBagConstraints.BOTH;
g1.setConstraints(print, c1);
hold.add(print);
constraints.insets.top = 10;
constraints.insets.left = 10;
constraints.insets.bottom = 10;
buildConstraints(constraints, 0, 2, 1, 1, 1, 1);
constraints.fill = GridBagConstraints.NONE;
gridbag.setConstraints(hold, constraints);
mp.add(hold);
constraints.insets.right = 10;
buildConstraints(constraints, 1, 2, 1, 1, 1, 1);
constraints.fill = GridBagConstraints.NONE;
gridbag.setConstraints(pp, constraints);
mp.add(pp);
// display
this.setContentPane(mp);
this.setVisible(true);
this.setResizable(false);
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
setSize(720, 520);
Dimension windowSize = getSize();
setLocation(Math.max(0,(screenSize.width -windowSize.width)/2),
(Math.max(0,(screenSize.height-windowSize.height)/2)));
DESKTOP.desktop.add(this);
try {
this.setSelected(true);
} catch (java.beans.PropertyVetoException e) {}
public void buildConstraints(GridBagConstraints gbc, int gx, int gy, int gw, int gh, double wx, double wy){
gbc.gridx = gx;
gbc.gridy = gy;
gbc.gridwidth = gw;
gbc.gridheight = gh;
gbc.weightx = wx;
gbc.weighty = wy;
public class PreviewPage extends JPanel{
public PreviewPage(){
public void paint(Graphics g){
super.paint(g);
Graphics2D g2 = (Graphics2D)g;
// PORTRAIT
if(PF.getOrientation() == PF.PORTRAIT){
g.setColor(Color.black);
g.drawRect(60, 10, 340, 440);
int x1 = (int)Math.rint( ( (double)PF.getImageableX() / 72 ) * 40 );
int y1 = (int)Math.rint( ( (double)PF.getImageableY() / 72 ) * 40 );
int l1 = (int)Math.rint( ( (double)PF.getImageableWidth() / 72 ) * 40 );
int h1 = (int)Math.rint( ( (double)PF.getImageableHeight() / 72 ) * 40 );
g.setColor(Color.red);
g.drawRect(x1+60, y1+10, l1, h1);
setScales();
int x2 = (int)Math.rint( 1028 / XSC );
int y2 = (int)Math.rint( 768 / YSC );
Image image = new BufferedImage( x2, y2, BufferedImage.TYPE_INT_ARGB);
PC.paint( image.getGraphics() );
g.drawImage(image, x1+60, y1+10, l1, h1, this);
// LANDSCAPE
if(PF.getOrientation() == PF.LANDSCAPE){
g.setColor(Color.black);
g.drawRect(10, 60, 440, 340);
int x1 = (int)Math.rint( ( (double)PF.getImageableX() / 72 ) * 40 );
int y1 = (int)Math.rint( ( (double)PF.getImageableY() / 72 ) * 40 );
int l1 = (int)Math.rint( ( (double)PF.getImageableWidth() / 72 ) * 40 );
int h1 = (int)Math.rint( ( (double)PF.getImageableHeight() / 72 ) * 40 );
g.setColor(Color.red);
g.drawRect(x1+10, y1+60, l1, h1);
setScales();
int x2 = (int)Math.rint( 1028 / XSC );
int y2 = (int)Math.rint( 768 / YSC );
Image image = new BufferedImage( x2, y2, BufferedImage.TYPE_INT_ARGB);
PC.paint( image.getGraphics() );
g.drawImage(image, x1+10, y1+60, l1, h1, this);
public void actionPerformed(ActionEvent e){
// fit to page
if(e.getSource() == ftp){
// preview
if(e.getSource() == preview){
setProperties();
// print
if(e.getSource() == print){
doPrint();
public void setProperties(){
if(pf1.isSelected() == true){
PF.setOrientation(PF.PORTRAIT);
if(pf2.isSelected() == true){
PF.setOrientation(PF.LANDSCAPE);
setScales();
pp.repaint();
public void setScales(){
try{
XSC = Double.parseDouble( xs.getText() );
} catch (NumberFormatException e) { }
try{
YSC = Double.parseDouble( ys.getText() );
} catch (NumberFormatException e) { }
public void doPrint(){
PrintThis();
public void PrintThis(){
PrinterJob printerJob = PrinterJob.getPrinterJob();
Book book = new Book();
book.append( new PrintPage(), PF );
printerJob.setPageable(book);
boolean doPrint = printerJob.printDialog();
if (doPrint) {
try {
printerJob.print();
} catch (PrinterException exception) {
System.err.println("Printing error: " + exception);
public class PrintPage implements Printable{
public int print(Graphics g, PageFormat format, int pageIndex) {
Graphics2D g2D = (Graphics2D) g;
g2D.translate(format.getImageableX (), format.getImageableY ());
disableDoubleBuffering(mp);
System.out.println("get i x " + format.getImageableX ());
System.out.println("get i x " + format.getImageableY ());
System.out.println("getx: " + format.getImageableWidth() );
System.out.println("getx: " + format.getImageableHeight() );
// scale to fill the page
double dw = format.getImageableWidth();
double dh = format.getImageableHeight();
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
setScales();
double xScale = dw / (1028/XSC);
double yScale = dh / (768/YSC);
double scale = Math.min(xScale,yScale);
System.out.println("" + scale);
g2D.scale( xScale, yScale);
((JPanel)PC).paint(g);
enableDoubleBuffering(mp);
return Printable.PAGE_EXISTS;
public void disableDoubleBuffering(Component c) {
RepaintManager currentManager = RepaintManager.currentManager(c);
currentManager.setDoubleBufferingEnabled(false);
public void enableDoubleBuffering(Component c) {
RepaintManager currentManager = RepaintManager.currentManager(c);
currentManager.setDoubleBufferingEnabled(true);
Component PC;
PageFormat PF = new PageFormat();
double XSC = 1;
double YSC = 1;
// gui comp
JPanel mp = new JPanel();
JPanel hold = new JPanel();
JPanel pp = new PreviewPage();
ButtonGroup pf = new ButtonGroup();
JRadioButton pf1;
JRadioButton pf2;
JLabel xsl = new JLabel("X Scale:", JLabel.LEFT);
JTextField xs = new JTextField("1");
JLabel ysl = new JLabel("Y Scale:", JLabel.LEFT);
JTextField ys = new JTextField("1");
JButton ftp = new JButton("Fit to Page");
JCheckBox cp = new JCheckBox("Constrain Proportions");
JButton preview = new JButton("PREVIEW");
JButton print = new JButton("PRINT");
} -
Incomplete print preview from certain websites
When printing from websites, the print preview is only a few lines of text with the title cut off, and a blue line in the margins. This does not happen with all websites, but is consistent with the site on which it occurs.
Thanks for your efforts. I changed scale and portrait/landscape without success. It is interesting that the login page will print completely, but after logging in none of the content will print more than 4-5 lines. I contacted the website and they said they were able to access the site using my information and it printed well for them. The printer has been disabled and restarted twice without changing the results (the websites suggestion). I used another computer, server, and printer at home and had the same problem.
-
The BIG WHITE MOSTLY BLANK , MOZILLA START PAGE was blocking my use of PRINT PREVIEW, from the orange "Firefox" in the upper left corner.
I was told i was using an out of date version of Firefox.
But no "click here to update".
So i downloaded the new edition of Firefox.
And still, i can not see PRINT PREVIEW, because the large white screen of the MOZILLA START PAGE is blocking it.
I have selected a background wallpaper, so would rather not see ANY of the BIG WHITE START PAGE, at all !!
HEEEELP,,,,,,Hi,
Can you please post a [https://en.wikipedia.org/wiki/Screenshot screenshot] of the start page when it is blocking the print preview. Please note that you may have to change to the tab of the site to be printed to see the print preview of the page. If the problem persists, please also check in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode.]
[http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
[https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
[http://support.mozilla.com/en-US/kb/Uninstalling+add-ons Uninstalling Add-ons]
[http://kb.mozillazine.org/Uninstalling_toolbars Uninstalling Toolbars] -
Sy-ucomm value for print preview
Hi friends,
Can any one tell me the sy-ucomm value for the print preview..?Hi,
If you are asking the function code of Pop-up you get while printing ..then answer is no..even if you get the fcode you cannot handle it in your program.
What exactly you are looking for ? -
Condition type freight is not getting displayed in print preview
Hi,
I created PO, and while seeing its print preview:
Condition type freight is not getting displayed.
Where i missed?
Utshi,
Inddition to M/08...(As given above)...
Also do check the smart form or SAP script...used for the output...check it with the ABAPer...whether the field is liable for o/p or not??
Smart form is attached at message type of message determination..
Regards
Priyanka.P -
Text in PO(text tab in header & item) is not shown in the Print Preview
Hi Guys,
I face a problem in ME23N.Text maintained in Purchase Orders (text tab in header & item) is not shown in the Print Preview.
Can you guys help.Do I need to write a subroutine pool for this.
<<text removed by moderator>>
Regards,
Rajiv
Edited by: Matt on Nov 12, 2008 1:20 PMHi ,
Use bapi bapi_po_getdetail .
CALL FUNCTION 'BAPI_PO_GETDETAIL'
EXPORTING
purchaseorder = is_ekko-ebeln
item_texts = c_x
header_texts = c_x
TABLES
po_header_texts = it_header_text
po_item_texts = it_item_text.
Regards
Neetesh -
Hello. I saved an email from my IMAP account locally to file as offlineemail.eml. When I try to open the .eml file later in Thunderbird, it opens up ok, no problem. When I do Print Preview just before sending it to my printer, two windows pop up. In the background is the first window, the Preview itself. However, it only shows "about:blank" in the Preview body. In the foreground, a window with Title: Opening offlineemail.eml. Body: You have chosen to open: offlineemail.eml which is: eml document (27.9 KB) from: /tmp. What should Thunderbird do with this file? [Radio button] Open with [dropdown] Thunderbird (default); [Radio button] Save file; [Checkbox unchecked] Do this automatically for files like this from now on. [Push buttons] Cancel Ok. The Ok button remains greyed out until I click one of the radio buttons. I click Open with Thunderbird, the Ok button is now active, and I click Ok. Here, the same email opens up just fine again in a separate Thunderbird window. I do a Print Preview, and this whole paragraph of steps is repeated. I never see the preview. Any ideas why this would be? My Thunderbird version: 31.3.0. My OS: linux openSUSE 13.1"Bottle". File manager: Thunar 1.6.3 for the XFCE desktop.
Here's the Audit Space Usage for the original 5 MB file. It shows the images taking up the majority of the space, as expected:
-
User gets odd behavior when print previewing calendar
User calls with an odd problem.
She is using 32 bit IE 9 with our SP 2010 farm.
She goes to her department calendar. She sees events.
She presses Print Preview. No events are shown on the page.
She tries to export the data to Outlook - it tells her there is too much data.
She calls me.
I look - her default view is running into the resource throttling of the farm. So I try to create a unique view that only shows this week's events.
It works fine for me. Print preview and printing work as well.
When she looks at it in her browser, it works fine.
When she tries to print preview - no events show up on the preview page.
She tries to export from the new view - Outlook gets no events.
She is using IE9, so the IE7 comments in old threads are not relevant.
I set the web part configuration to 12 inches as one conversation suggestions. That doesn't help.
Does anyone else have any ideas of things to try?When I look at the custom calendar within SharePoint Designer, the page has a ListView Web Part but not an XsltListViewWebPart.
I have tried several times to step through blog entries that describe editing the page, setting the view of the web part, etc. At one point whatever I tried turned the calendar view into a list view ... sigh. I created a new calendar view and made it
the default.
I have asked the user to try the print preview out today to see if it works for her after I created the new view.
The really odd thing about all of this is that at least 2 people don't have the problem with not seeing event data in the print preview.
It _almost_ sounds like some sort of machine specific issue she is having.
I wonder if I should ask the admins to repair Office 2010 on her machine to make certain the DLLs are all working properly. -
Vendor Ref. no. not displayed in print preview in vendor aging report
Dear SAP team,
Vendor reference number is not displayed in print preview/print on vendor liabliteis aging report,
but this vendor reference number actually show in report,We are taking report by journal postings,
vendor reference entered in NumAtCard in AP invoice get copied to Ref2 in Journal Entry,then
why it is not showing in print preview/print.
Whether this is an application error / missing functionality ?
We are using SAP Business One 2005 B (7.40.252) SP: 00 PL: 36.
Whether upgrade to latest patch 2005B PL46 will solve this issue ?
JeyakanthanHello Jeyakanthan,
I would like to draw your attention to the enhancements we delivered within Aging Report in 2007 version and plan for 8.8 release.
The primary enhancement in 2007 version is reflecting new concept of Internal Reconciliation with more convenient backward reporting.
Within the 8.8 release ...
- when you generate the aging report you can group the report by customer or sales employee in the customer receivables aging report, and by vendor or buyer in the vendor liabilities aging report;
- when the aging report has been generated, you can view multicustomer/multivendor detailed information in the aging report window. There is no need to double-click each customer/vendor row to view the details.
We would strongly to recommend you to upgrade to 2007 version or join the ramp-up of 8.8 release soon.
Peter Dominik
B1 Solution Management -
Vendor ref. no. not appearing in print preview of vendor aging report
Dear all,
Vendor reference number is not appearing in print preview of vendor ageing report,we have
customized template AGE3 collection report,we have taken print outs before a month,vendor
reference number get printed in report,now it is not appearing
What could be problem ?
Any one faces this issue ?
We are using SAP Business One 2005 B (7.40.252) SP: 00 PL: 41.
Latest patch upgrade to PL:46 will solve the issue ?
Jeyakanthanhi all,
Thru a workaround i brought up vendor reference number in print preview/print,
Applied formatted search in journal remarks of ap invoice thru query
SELECT $[OPCH.NumAtCard]
,this will populate vendor ref. no in journal remarks
which can be displayed in details in aging report.
Is there any solution other than above to bring vendor reference number in print ?
Jeyakanthan -
I am trying to delete pages I have crated in numbers, but can only see them in print preview. Without print preview I do not see them. How can I delete these pages, but keep others before and after?
Hi Crushed,
Numbers doesn't have pages. It has a canvas that holds objects such as tables and charts.
Drag the objects from the bottom of the canvas onto the white space above. That will reduce the number of "pages" (sheets of paper) that will print.
Regards,
Ian.
Maybe you are looking for
-
10.9.2 - New Documents open to a search window . . .
After upgrading to 10.9.2, every time I open Pages, TextEdit, etc . . . I get a this annoying window that is a hybrid Finder / Search window. I have to either search for an existing document, press "done" in the bottom right, or "New Document" in the
-
Possible to view presentations with embedded clips on the ipad from an external wifi drive?
Hello, first of all I am happy to have joined this community, my name is Chris from Germany. I am wondering if this setting is possible: I have bought an external wifi drive (Seagate Satellite Goflex) as well as the iPad4. I am giving lectures (power
-
Moving iTunes to new computer, using external HD, not seeing library in iTunes
Hi all, I got a new laptop running Windows 7. I followed Apple's directions for how to move iTunes to a new computer using an external hard drive. http://support.apple.com/kb/HT4527 All looks good until Part 5, Step 6 where it says "Open iTunes. Y
-
Not able to add more content in a topic
Hi, I am working on a project in RoboHelp7. The final output that I will be giving are seperate html files. The problem that I am facing is, even if the helpbody height is set to auto, I am not able to see that content I add into a topic after a cert
-
Changing process.max-file-descriptor in non global zone
Hello Folks, I have non global zone. i wanted to change process.max-file-descriptor to 8192 so i issued the below command projmod -s -K 'process.max-file-descriptor=(basic,8192,deny)' default i have rebooted zone, after reboot system is not showing t