Pls...help...printing the whole delivery order...very very urgent
Can anybody help me in this code.
I would like to print out delivery order,but when i printed,it just printed out the whole delivery order in the bottom of A4 paper.Can anybody modify the source code and give me proper one?
I would it to fit on A4 paper.
These are the soource code,Pls help,it's very urgent.Thanks for any help.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.table.*;
import java.sql.*;
import java.net.*;
import java.io.*;
import java.util.*;
import java.awt.print.*;
import java.awt.geom.*;
public class ConfirmDeliveryOrderDialog extends JDialog implements ActionListener,Printable
private ResultSetTableModel retrieveDOInfoModel;
private JTable newDOTable;
private JScrollPane newDOSp;
private JLabel comT1,comT2,comT3,doT,doID,doIDNo,receivedDate,actualReceivedDate,deliveryTo,deliveryToCustomerInfo,
companyAddress,companyAddressInfo,tel,telNo,dispatchDate,actualDispatchDate,total,totalQuantity,
inputTotalQuantity,totalKg,inputTotalKg,remark,inputRemark;
private Line2D line,line1;
private Graphics2D g;
private Container cp;
private JButton printBtn,exitBtn;
private Connection con;
private Statement retrieveDOInfoStmt;
private ResultSet retrieveDOInfoRs;
int quan,Kg;
boolean centered = true;
public ConfirmDeliveryOrderDialog(JDialog parent)
super(parent,"New Delivery Order",true);
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = Laundry.getConnection();
retrieveDOInfoStmt = con.createStatement();
String retrieveDOInfo = "SELECT ItemName,ItemTypeName,WashingType,CleaningType,ItemCategory,QuantityOrKg AS [Quantity/Kg] " +
"FROM DoDetail,DOInfo " +
"WHERE DODetail.DOID = DOInfo.DOID " +
"AND DOInfo.CompanyID = " + Laundry.companyDetails.get(0) +
"AND DODetail.DOID = " + EnterDeliveryOrderNumberDialog.DOInfo.get(0);
retrieveDOInfoRs = retrieveDOInfoStmt.executeQuery(retrieveDOInfo);
if(Laundry.SCROLLABLE)
retrieveDOInfoModel = new ScrollingResultSetTableModel(retrieveDOInfoRs);
else
retrieveDOInfoModel = new CachingResultSetTableModel(retrieveDOInfoRs);
newDOTable = new JTable(retrieveDOInfoModel);
newDOSp = new JScrollPane(newDOTable);
newDOTable.getTableHeader().setReorderingAllowed(false);
newDOTable.setPreferredScrollableViewportSize(new Dimension(550,350));
retrieveDOInfoStmt.close();
con.close();
cp = getContentPane();
cp.add(newDOSp, BorderLayout.CENTER);
catch(SQLException ext)
JOptionPane.showMessageDialog(null,"SQL Exception:","ERROR",JOptionPane.ERROR_MESSAGE);
while (ext != null)
JOptionPane.showMessageDialog(null,"SQL State:" + ext.getSQLState() + "\nMessage:" + ext.getMessage() + "\nVendor:" + ext.getErrorCode(),"ERROR",JOptionPane.ERROR_MESSAGE);
ext = ext.getNextException();
catch(ClassNotFoundException ex)
JOptionPane.showMessageDialog(null,"Exception:" + ex,"ERROR",JOptionPane.ERROR_MESSAGE);
ex.printStackTrace();
catch(Exception e)
JOptionPane.showMessageDialog(null,"Exception:" + e,"ERROR",JOptionPane.ERROR_MESSAGE);
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = Laundry.getConnection();
retrieveDOInfoStmt = con.createStatement();
String retrieveDOInfo = "SELECT SUM(QuantityOrKg) AS [Total Quantity] " +
"FROM DOInfo,DODetail " +
"WHERE DOInfo.DOID = DODetail.DOID " +
"AND DOInfo.CompanyID = " + Laundry.companyDetails.get(0) +
"AND DODetail.DOID = " + EnterDeliveryOrderNumberDialog.DOInfo.get(0) +
"AND ItemCategory = 'Piece' " +
"GROUP BY DODetail.DOID ";
retrieveDOInfoRs = retrieveDOInfoStmt.executeQuery(retrieveDOInfo);
while(retrieveDOInfoRs.next())
quan = retrieveDOInfoRs.getInt("Total Quantity");
retrieveDOInfoStmt.close();
con.close();
catch(SQLException ext)
JOptionPane.showMessageDialog(null,"SQL Exception:","ERROR",JOptionPane.ERROR_MESSAGE);
while (ext != null)
JOptionPane.showMessageDialog(null,"SQL State:" + ext.getSQLState() + "\nMessage:" + ext.getMessage() + "\nVendor:" + ext.getErrorCode(),"ERROR",JOptionPane.ERROR_MESSAGE);
ext = ext.getNextException();
catch(ClassNotFoundException ex)
JOptionPane.showMessageDialog(null,"Exception:" + ex,"ERROR",JOptionPane.ERROR_MESSAGE);
ex.printStackTrace();
catch(Exception e)
JOptionPane.showMessageDialog(null,"Exception:" + e,"ERROR",JOptionPane.ERROR_MESSAGE);
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = Laundry.getConnection();
retrieveDOInfoStmt = con.createStatement();
String retrieveDOInfo = "SELECT SUM(QuantityOrKg) AS [Total Kg] " +
"FROM DOInfo, DODetail " +
"WHERE DOInfo.DOID = DODetail.DOID " +
"AND DODetail.DOID = " + EnterDeliveryOrderNumberDialog.DOInfo.get(0) +
"AND DOInfo.CompanyID = " + Laundry.companyDetails.get(0) +
"AND ItemCategory = 'Kg' " +
"GROUP BY DODetail.DOID ";
retrieveDOInfoRs = retrieveDOInfoStmt.executeQuery(retrieveDOInfo);
while(retrieveDOInfoRs.next())
Kg = retrieveDOInfoRs.getInt("Total Kg");
retrieveDOInfoStmt.close();
con.close();
catch(SQLException ext)
JOptionPane.showMessageDialog(null,"SQL Exception:","ERROR",JOptionPane.ERROR_MESSAGE);
while (ext != null)
JOptionPane.showMessageDialog(null,"SQL State:" + ext.getSQLState() + "\nMessage:" + ext.getMessage() + "\nVendor:" + ext.getErrorCode(),"ERROR",JOptionPane.ERROR_MESSAGE);
ext = ext.getNextException();
catch(ClassNotFoundException ex)
JOptionPane.showMessageDialog(null,"Exception:" + ex,"ERROR",JOptionPane.ERROR_MESSAGE);
ex.printStackTrace();
catch(Exception e)
JOptionPane.showMessageDialog(null,"Exception:" + e,"ERROR",JOptionPane.ERROR_MESSAGE);
comT1 = new JLabel("Deluxe Laundry Sdn Bhd");
comT1.setFont(new Font("Sanserif",Font.BOLD,12));
comT2 = new JLabel("Lot 1641, Jln Sungai Tua, Batu Caves, 68100 Selangor Darul Ehsan");
comT2.setFont(new Font("Sanserif",Font.PLAIN,10));
comT3 = new JLabel("Tel : 03-61863093 03-61863091 Fax : 03-61863096");
comT3.setFont(new Font("Sanserif",Font.PLAIN,10));
Box comBox = Box.createVerticalBox();
comBox.add(Box.createVerticalStrut(5));
comBox.add(comT1);
comBox.add(Box.createVerticalStrut(2));
comBox.add(comT2);
comBox.add(Box.createVerticalStrut(2));
comBox.add(comT3);
comBox.add(Box.createVerticalStrut(2));
Box comNBox = Box.createHorizontalBox();
comNBox.add(Box.createHorizontalStrut(10));
comNBox.add(comBox);
comNBox.add(Box.createHorizontalStrut(300));
//line = new Line2D.Float();
//line.setLine(10,50,600,50);
//Graphics2D dfl = (Graphics2D)g;
//dfl.drawLine(10,50,600,50);
doT = new JLabel("Delivery Order");
doT.setFont(new Font("Sanserif",Font.BOLD,17));
doID = new JLabel("DO ID : ");
doID.setFont(new Font("Sanserif",Font.BOLD,12));
doIDNo = new JLabel("");
doIDNo.setText("" + EnterDeliveryOrderNumberDialog.DOInfo.get(0));
doIDNo.setFont(new Font("Sanserif",Font.PLAIN,12));
receivedDate = new JLabel("Received Date : ");
receivedDate.setFont(new Font("Sanserif",Font.BOLD,12));
actualReceivedDate = new JLabel("");
actualReceivedDate.setText("" + EnterDeliveryOrderNumberDialog.DOInfo.get(1));
actualReceivedDate.setFont(new Font("Sanserif",Font.PLAIN,12));
JPanel jp = new JPanel();
jp.setLayout(new GridLayout(2,3));
jp.add(doID);
jp.add(doIDNo);
jp.add(receivedDate);
jp.add(actualReceivedDate);
Box doBox = Box.createHorizontalBox();
doBox.add(Box.createHorizontalStrut(200));
doBox.add(doT);
doBox.add(Box.createHorizontalStrut(50));
doBox.add(jp);
doBox.add(Box.createHorizontalStrut(100));
//line1 = new Line2D.Float();
//line1.setLine(10,0,600,0);
//Graphics2D df2 = (Graphics2D)g;
//df2.drawLine(10,100,600,100);
deliveryTo = new JLabel("Delivery To :");
deliveryTo.setFont(new Font("Sanserif",Font.BOLD,12));
deliveryToCustomerInfo = new JLabel("");
deliveryToCustomerInfo.setText("" + Laundry.companyDetails.get(1));
deliveryToCustomerInfo.setFont(new Font("Sanserif",Font.PLAIN,12));
Box deliveryToBox = Box.createHorizontalBox();
deliveryToBox.add(Box.createHorizontalStrut(10));
deliveryToBox.add(deliveryTo);
deliveryToBox.add(Box.createHorizontalStrut(10));
deliveryToBox.add(deliveryToCustomerInfo);
deliveryToBox.add(Box.createHorizontalStrut(500));
companyAddress = new JLabel("");
companyAddress.setFont(new Font("Sanserif",Font.BOLD,12));
companyAddressInfo = new JLabel("");
companyAddressInfo.setText("" + Laundry.companyDetails.get(2));
companyAddressInfo.setFont(new Font("Sanserif",Font.PLAIN,12));
Box companyAddressBox = Box.createHorizontalBox();
companyAddressBox.add(Box.createHorizontalStrut(98));
companyAddressBox.add(companyAddress);
companyAddressBox.add(Box.createHorizontalStrut(10));
companyAddressBox.add(companyAddressInfo);
companyAddressBox.add(Box.createHorizontalStrut(500));
tel = new JLabel("Tel :");
tel.setFont(new Font("Sanserif",Font.BOLD,12));
telNo = new JLabel("");
telNo.setText("" + '0'+Laundry.companyDetails.get(3));
telNo.setFont(new Font("Sanserif",Font.PLAIN,12));
Box telBox = Box.createHorizontalBox();
telBox.add(Box.createHorizontalStrut(10));
telBox.add(tel);
telBox.add(Box.createHorizontalStrut(10));
telBox.add(telNo);
telBox.add(Box.createHorizontalStrut(500));
dispatchDate = new JLabel("Dispatch Date :");
dispatchDate.setFont(new Font("Sanserif",Font.BOLD,12));
actualDispatchDate = new JLabel("");
actualDispatchDate.setText("" + EnterDeliveryOrderNumberDialog.DOInfo.get(2));
actualDispatchDate.setFont(new Font("Sanserif",Font.PLAIN,12));
Box dispatchBox = Box.createHorizontalBox();
dispatchBox.add(Box.createHorizontalStrut(10));
dispatchBox.add(dispatchDate);
dispatchBox.add(Box.createHorizontalStrut(10));
dispatchBox.add(actualDispatchDate);
dispatchBox.add(Box.createHorizontalStrut(500));
remark = new JLabel("Remark :");
remark.setFont(new Font("Sanserif",Font.BOLD,12));
inputRemark = new JLabel("");
inputRemark.setText("" + EnterDeliveryOrderNumberDialog.DOInfo.get(3));
inputRemark.setFont(new Font("Sanserif",Font.PLAIN,12));
Box remarkBox = Box.createHorizontalBox();
remarkBox.add(Box.createHorizontalStrut(10));
remarkBox.add(remark);
remarkBox.add(Box.createHorizontalStrut(10));
remarkBox.add(inputRemark);
remarkBox.add(Box.createHorizontalStrut(500));
Box infoBox = Box.createVerticalBox();
infoBox.add(Box.createVerticalStrut(5));
infoBox.add(deliveryToBox);
infoBox.add(Box.createVerticalStrut(5));
infoBox.add(companyAddressBox);
infoBox.add(Box.createVerticalStrut(5));
infoBox.add(telBox);
infoBox.add(Box.createVerticalStrut(5));
infoBox.add(dispatchBox);
infoBox.add(Box.createVerticalStrut(5));
infoBox.add(remarkBox);
infoBox.add(Box.createVerticalStrut(5));
Box northBox = Box.createVerticalBox();
northBox.add(Box.createVerticalStrut(5));
northBox.add(comNBox);
northBox.add(Box.createVerticalStrut(5));
northBox.add(doBox);
northBox.add(Box.createVerticalStrut(5));
northBox.add(infoBox);
northBox.add(Box.createVerticalStrut(5));
Shape firstShape = new Rectangle(350,100,10,5);
//Font font = new Font("Sanserif",Font.PLAIN,5);
String text = "Checked By";
//g.drawString(text,365,105);
//g.setFont(new Font("Sanserif",Font.PLAIN,5));
//g.fill(firstShape);
//g.draw(firstShape);
//Box joinBox = Box.createHorizontalBox();
//joinBox.add(northBox);
//joinBox.add(Box.createHorizontalStrut(10));
//joinBox.add(g);
printBtn = new JButton("Print");
printBtn.addActionListener(this);
exitBtn = new JButton("Exit");
exitBtn.addActionListener(this);
JPanel jp3 = new JPanel();
jp3.add(printBtn);
jp3.add(exitBtn);
total = new JLabel("Total");
totalQuantity = new JLabel("Quantity");
totalQuantity.setFont(new Font("Sanserif",Font.PLAIN,12));
inputTotalQuantity = new JLabel("");
inputTotalQuantity.setFont(new Font("Sanserif",Font.PLAIN,12));
inputTotalQuantity.setText("" + quan);
totalKg = new JLabel("Kg");
totalKg.setFont(new Font("Sanserif",Font.PLAIN,12));
inputTotalKg = new JLabel("");
inputTotalKg.setFont(new Font("Sanserif",Font.PLAIN,12));
inputTotalKg.setText("" + Kg);
Box totalBox = Box.createHorizontalBox();
totalBox.add(Box.createHorizontalStrut(270));
totalBox.add(total);
totalBox.add(Box.createHorizontalStrut(50));
totalBox.add(totalQuantity);
totalBox.add(Box.createHorizontalStrut(50));
totalBox.add(inputTotalQuantity);
totalBox.add(Box.createHorizontalStrut(30));
totalBox.add(totalKg);
totalBox.add(Box.createHorizontalStrut(50));
totalBox.add(inputTotalKg);
totalBox.add(Box.createHorizontalStrut(30));
Box southBox = Box.createVerticalBox();
southBox.add(Box.createVerticalStrut(10));
southBox.add(totalBox);
southBox.add(Box.createVerticalStrut(5));
southBox.add(jp3);
cp = getContentPane();
cp.add(northBox, BorderLayout.NORTH);
cp.add(southBox, BorderLayout.SOUTH);
setSize(600,400);
setLocation(100,100);
public void actionPerformed(ActionEvent ae)
if(ae.getSource() == printBtn)
PageFormat page = new PageFormat();
Paper paper = new Paper();
paper.setSize(595.275590551181,841.8897637795276);
paper.setImageableArea(70.8661417322835,70.8661417322835,453.5433070866141,700.1574803149607);
page.setPaper(paper);
page.setOrientation(PageFormat.PORTRAIT);
PrinterJob printJob = PrinterJob.getPrinterJob();
if(page == null)
page = printJob.defaultPage();
printJob.setPrintable(this,page);
if(printJob.printDialog())
try
printJob.print();
setVisible(false);
JOptionPane.showMessageDialog(null,"Please Generate Normal Or Express JobList","JobList",JOptionPane.INFORMATION_MESSAGE);
catch(PrinterException e)
JOptionPane.showMessageDialog(this,e);
else if(ae.getSource() == exitBtn)
EnterDeliveryOrderNumberDialog.removeDOInfo();
setVisible(false);
public int print(Graphics g, PageFormat pf, int page) throws PrinterException
if(page >= 1)
return Printable.NO_SUCH_PAGE;
Graphics2D g2 = (Graphics2D)g;
g2.translate(pf.getImageableX(), pf.getImageableY());
if(centered)
g2.translate(pf.getImageableWidth(), pf.getImageableHeight());
Dimension d = getSize();
double scale = Math.min(pf.getImageableWidth() / d.width, pf.getImageableHeight() / d.height);
if (scale < 1.0)
g2.scale(scale, scale);
if (centered)
g2.translate(-d.width, -d.height);
paint(g2);
return Printable.PAGE_EXISTS;
Hi Thanx, your code helped. I have got another question. How do i implement a method from another method class into the applet. say, i want to implemen set frequency from the below code into my applet you wrote above?
class Histogram
int frequency[];
String alphabet;
Histogram(String alphabet)
this.alphabet=alphabet;
frequency=new int[alphabet.length()];
void scan(String message)
for(int i=0;i<message.length;i++)
frequncy[alphabet.IndexOf(message.charAt(i))]++;
void setfrequency(int frequency[])
for(int i=0;i<alphabet.length;i++)
this.frequency=frequency[i];
double entropy()
int total=0;
double probablity;
log2=Math.log(2.0);
for(int i=0;i<alphabet.length;i++)
total+=freguency[i];
Similar Messages
-
Pls...printing the whole delivery order
Hi,
Can anyone pls modify the source code here in order for me to print out delivery order.Actually i have done it,but the problem is the printed delivery order is at the down side of A4 paper.
Can anyone pls modify the source code below and and print out the it nicely.And i do not want to see print button and exit button when it is printed out.Thank you very much.
Source:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.table.*;
import java.sql.*;
import java.net.*;
import java.io.*;
import java.util.*;
import java.awt.print.*;
import java.awt.geom.*;
public class ConfirmDeliveryOrderDialog extends JDialog implements ActionListener,Printable
private ResultSetTableModel retrieveDOInfoModel;
private JTable newDOTable;
private JScrollPane newDOSp;
private JLabel comT1,comT2,comT3,doT,doID,doIDNo,receivedDate,actualReceivedDate,deliveryTo,deliveryToCustomerInfo,
companyAddress,companyAddressInfo,tel,telNo,dispatchDate,actualDispatchDate,total,totalQuantity,
inputTotalQuantity,totalKg,inputTotalKg,remark,inputRemark;
private Line2D line,line1;
private Graphics2D g;
private Container cp;
private JButton printBtn,exitBtn;
private Connection con;
private Statement retrieveDOInfoStmt;
private ResultSet retrieveDOInfoRs;
//private PageFormat pageFormat;
int quan,Kg;
boolean centered = true;
public ConfirmDeliveryOrderDialog(JDialog parent)
super(parent,"New Delivery Order",true);
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = Laundry.getConnection();
retrieveDOInfoStmt = con.createStatement();
String retrieveDOInfo = "SELECT ItemName,ItemTypeName,WashingType,CleaningType,ItemCategory,QuantityOrKg AS [Quantity/Kg] " +
"FROM DoDetail,DOInfo " +
"WHERE DODetail.DOID = DOInfo.DOID " +
"AND DOInfo.CompanyID = " + Laundry.companyDetails.get(0) +
"AND DODetail.DOID = " + EnterDeliveryOrderNumberDialog.DOInfo.get(0);
retrieveDOInfoRs = retrieveDOInfoStmt.executeQuery(retrieveDOInfo);
if(Laundry.SCROLLABLE)
retrieveDOInfoModel = new ScrollingResultSetTableModel(retrieveDOInfoRs);
else
retrieveDOInfoModel = new CachingResultSetTableModel(retrieveDOInfoRs);
newDOTable = new JTable(retrieveDOInfoModel);
newDOSp = new JScrollPane(newDOTable);
newDOTable.getTableHeader().setReorderingAllowed(false);
newDOTable.setPreferredScrollableViewportSize(new Dimension(550,350));
retrieveDOInfoStmt.close();
con.close();
cp = getContentPane();
cp.add(newDOSp, BorderLayout.CENTER);
catch(SQLException ext)
JOptionPane.showMessageDialog(null,"SQL Exception:","ERROR",JOptionPane.ERROR_MESSAGE);
while (ext != null)
JOptionPane.showMessageDialog(null,"SQL State:" + ext.getSQLState() + "\nMessage:" + ext.getMessage() + "\nVendor:" + ext.getErrorCode(),"ERROR",JOptionPane.ERROR_MESSAGE);
ext = ext.getNextException();
catch(ClassNotFoundException ex)
JOptionPane.showMessageDialog(null,"Exception:" + ex,"ERROR",JOptionPane.ERROR_MESSAGE);
ex.printStackTrace();
catch(Exception e)
JOptionPane.showMessageDialog(null,"Exception:" + e,"ERROR",JOptionPane.ERROR_MESSAGE);
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = Laundry.getConnection();
retrieveDOInfoStmt = con.createStatement();
String retrieveDOInfo = "SELECT DODetail.DOID,SUM(QuantityOrKg) AS [Total Quantity] " +
"FROM DoDetail,DoInfo " +
"WHERE DOInfo.CompanyID = " + Laundry.companyDetails.get(0) +
"AND ItemCategory = 'Piece' " +
"AND DODetail.DOID = DOInfo.DOID " +
"AND DODetail.DOID = " + EnterDeliveryOrderNumberDialog.DOInfo.get(0) +
"GROUP BY DODetail.DOID";
retrieveDOInfoRs = retrieveDOInfoStmt.executeQuery(retrieveDOInfo);
while(retrieveDOInfoRs.next())
quan = retrieveDOInfoRs.getInt("Total Quantity");
retrieveDOInfoStmt.close();
con.close();
catch(SQLException ext)
JOptionPane.showMessageDialog(null,"SQL Exception:","ERROR",JOptionPane.ERROR_MESSAGE);
while (ext != null)
JOptionPane.showMessageDialog(null,"SQL State:" + ext.getSQLState() + "\nMessage:" + ext.getMessage() + "\nVendor:" + ext.getErrorCode(),"ERROR",JOptionPane.ERROR_MESSAGE);
ext = ext.getNextException();
catch(ClassNotFoundException ex)
JOptionPane.showMessageDialog(null,"Exception:" + ex,"ERROR",JOptionPane.ERROR_MESSAGE);
ex.printStackTrace();
catch(Exception e)
JOptionPane.showMessageDialog(null,"Exception:" + e,"ERROR",JOptionPane.ERROR_MESSAGE);
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = Laundry.getConnection();
retrieveDOInfoStmt = con.createStatement();
String retrieveDOInfo = "SELECT DODetail.DOID,SUM(QuantityOrKg) AS [Total Kg] " +
"FROM DoDetail,DoInfo " +
"WHERE DODetail.DOID = DOInfo.DOID " +
"AND DODetail.DOID = " + EnterDeliveryOrderNumberDialog.DOInfo.get(0) +
"AND ItemCategory = 'Kg' " +
"AND DOInfo.CompanyID = " + Laundry.companyDetails.get(0) +
"GROUP BY DODetail.DOID ";
retrieveDOInfoRs = retrieveDOInfoStmt.executeQuery(retrieveDOInfo);
while(retrieveDOInfoRs.next())
Kg = retrieveDOInfoRs.getInt("Total Kg");
retrieveDOInfoStmt.close();
con.close();
catch(SQLException ext)
JOptionPane.showMessageDialog(null,"SQL Exception:","ERROR",JOptionPane.ERROR_MESSAGE);
while (ext != null)
JOptionPane.showMessageDialog(null,"SQL State:" + ext.getSQLState() + "\nMessage:" + ext.getMessage() + "\nVendor:" + ext.getErrorCode(),"ERROR",JOptionPane.ERROR_MESSAGE);
ext = ext.getNextException();
catch(ClassNotFoundException ex)
JOptionPane.showMessageDialog(null,"Exception:" + ex,"ERROR",JOptionPane.ERROR_MESSAGE);
ex.printStackTrace();
catch(Exception e)
JOptionPane.showMessageDialog(null,"Exception:" + e,"ERROR",JOptionPane.ERROR_MESSAGE);
comT1 = new JLabel("Deluxe Laundry Sdn Bhd");
comT1.setFont(new Font("Sanserif",Font.BOLD,12));
comT2 = new JLabel("Lot 1641, Jln Sungai Tua, Batu Caves, 68100 Selangor Darul Ehsan");
comT2.setFont(new Font("Sanserif",Font.PLAIN,10));
comT3 = new JLabel("Tel : 03-61863093 03-61863091 Fax : 03-61863096");
comT3.setFont(new Font("Sanserif",Font.PLAIN,10));
Box comBox = Box.createVerticalBox();
comBox.add(Box.createVerticalStrut(5));
comBox.add(comT1);
comBox.add(Box.createVerticalStrut(2));
comBox.add(comT2);
comBox.add(Box.createVerticalStrut(2));
comBox.add(comT3);
comBox.add(Box.createVerticalStrut(2));
Box comNBox = Box.createHorizontalBox();
comNBox.add(Box.createHorizontalStrut(10));
comNBox.add(comBox);
comNBox.add(Box.createHorizontalStrut(300));
doT = new JLabel("Delivery Order");
doT.setFont(new Font("Sanserif",Font.BOLD,17));
doID = new JLabel("DO ID : ");
doID.setFont(new Font("Sanserif",Font.BOLD,12));
doIDNo = new JLabel("");
doIDNo.setText("" + EnterDeliveryOrderNumberDialog.DOInfo.get(0));
doIDNo.setFont(new Font("Sanserif",Font.PLAIN,12));
receivedDate = new JLabel("Received Date : ");
receivedDate.setFont(new Font("Sanserif",Font.BOLD,12));
actualReceivedDate = new JLabel("");
actualReceivedDate.setText("" + EnterDeliveryOrderNumberDialog.DOInfo.get(1));
actualReceivedDate.setFont(new Font("Sanserif",Font.PLAIN,12));
JPanel jp = new JPanel();
jp.setLayout(new GridLayout(2,2));
jp.add(doID);
jp.add(doIDNo);
jp.add(receivedDate);
jp.add(actualReceivedDate);
Box doBox = Box.createHorizontalBox();
doBox.add(Box.createHorizontalStrut(200));
doBox.add(doT);
doBox.add(Box.createHorizontalStrut(50));
doBox.add(jp);
doBox.add(Box.createHorizontalStrut(30));
deliveryTo = new JLabel("Delivery To : ");
deliveryTo.setFont(new Font("Sanserif",Font.BOLD,12));
deliveryToCustomerInfo = new JLabel("");
deliveryToCustomerInfo.setText("" + Laundry.companyDetails.get(1));
deliveryToCustomerInfo.setFont(new Font("Sanserif",Font.PLAIN,12));
companyAddress = new JLabel("");
companyAddress.setFont(new Font("Sanserif",Font.BOLD,12));
companyAddressInfo = new JLabel("");
companyAddressInfo.setText("" + Laundry.companyDetails.get(2));
companyAddressInfo.setFont(new Font("Sanserif",Font.PLAIN,12));
tel = new JLabel("Tel : ");
tel.setFont(new Font("Sanserif",Font.BOLD,12));
telNo = new JLabel("");
telNo.setText("" + '0'+Laundry.companyDetails.get(3));
telNo.setFont(new Font("Sanserif",Font.PLAIN,12));
dispatchDate = new JLabel("Dispatch Date : ");
dispatchDate.setFont(new Font("Sanserif",Font.BOLD,12));
actualDispatchDate = new JLabel("");
actualDispatchDate.setText("" + EnterDeliveryOrderNumberDialog.DOInfo.get(2));
actualDispatchDate.setFont(new Font("Sanserif",Font.PLAIN,12));
remark = new JLabel("Remark");
remark.setFont(new Font("Sanserif",Font.BOLD,12));
inputRemark = new JLabel("");
inputRemark = new JLabel("" + EnterDeliveryOrderNumberDialog.DOInfo.get(3));
inputRemark.setFont(new Font("Sanserif",Font.PLAIN,12));
JPanel jp1 = new JPanel();
jp1.setLayout(new GridLayout(5,2,5,5));
jp1.add(deliveryTo);
jp1.add(deliveryToCustomerInfo);
jp1.add(companyAddress);
jp1.add(companyAddressInfo);
jp1.add(tel);
jp1.add(telNo);
jp1.add(dispatchDate);
jp1.add(actualDispatchDate);
jp1.add(remark);
jp1.add(inputRemark);
Box customerInfoBox = Box.createHorizontalBox();
customerInfoBox.add(Box.createHorizontalStrut(10));
customerInfoBox.add(jp1);
customerInfoBox.add(Box.createHorizontalStrut(300));
Box northBox = Box.createVerticalBox();
northBox.add(Box.createVerticalStrut(5));
northBox.add(comNBox);
northBox.add(Box.createVerticalStrut(5));
northBox.add(doBox);
northBox.add(Box.createVerticalStrut(5));
northBox.add(customerInfoBox);
northBox.add(Box.createVerticalStrut(5));
Shape firstShape = new Rectangle(350,100,10,5);
printBtn = new JButton("Print");
printBtn.addActionListener(this);
exitBtn = new JButton("Exit");
exitBtn.addActionListener(this);
JPanel jp3 = new JPanel();
jp3.add(printBtn);
jp3.add(exitBtn);
total = new JLabel("Total");
totalQuantity = new JLabel("Quantity");
totalQuantity.setFont(new Font("Sanserif",Font.PLAIN,12));
inputTotalQuantity = new JLabel("");
inputTotalQuantity.setFont(new Font("Sanserif",Font.PLAIN,12));
inputTotalQuantity.setText("" + quan);
totalKg = new JLabel("Kg");
totalKg.setFont(new Font("Sanserif",Font.PLAIN,12));
inputTotalKg = new JLabel("");
inputTotalKg.setFont(new Font("Sanserif",Font.PLAIN,12));
inputTotalKg = new JLabel("" + Kg);
Box totalBox = Box.createHorizontalBox();
totalBox.add(Box.createHorizontalStrut(270));
totalBox.add(total);
totalBox.add(Box.createHorizontalStrut(50));
totalBox.add(totalQuantity);
totalBox.add(Box.createHorizontalStrut(50));
totalBox.add(inputTotalQuantity);
totalBox.add(Box.createHorizontalStrut(30));
totalBox.add(totalKg);
totalBox.add(Box.createHorizontalStrut(50));
totalBox.add(inputTotalKg);
totalBox.add(Box.createHorizontalStrut(30));
Box southBox = Box.createVerticalBox();
southBox.add(Box.createVerticalStrut(10));
southBox.add(totalBox);
southBox.add(Box.createVerticalStrut(5));
southBox.add(jp3);
cp = getContentPane();
cp.add(northBox, BorderLayout.NORTH);
cp.add(southBox, BorderLayout.SOUTH);
setSize(600,400);
setLocation(100,100);
public void actionPerformed(ActionEvent ae)
if(ae.getSource() == printBtn)
PageFormat page = new PageFormat();
Paper paper = new Paper();
paper.setSize(595.275590551181,841.8897637795276);
paper.setImageableArea(70.8661417322835,70.8661417322835,453.5433070866141,700.1574803149607);
page.setPaper(paper);
page.setOrientation(PageFormat.PORTRAIT);
PrinterJob printJob = PrinterJob.getPrinterJob();
if(page == null)
page = printJob.defaultPage();
printJob.setPrintable(this,page);
if(printJob.printDialog())
try
printJob.print();
catch(PrinterException e)
JOptionPane.showMessageDialog(this,e);
else if(ae.getSource() == exitBtn)
EnterDeliveryOrderNumberDialog.removeDOInfo();
setVisible(false);
public int print(Graphics g, PageFormat pf, int page) throws PrinterException
if(page >= 1)
return Printable.NO_SUCH_PAGE;
Graphics2D g2 = (Graphics2D)g;
g2.translate(pf.getImageableX(), pf.getImageableY());
if(centered)
g2.translate(pf.getImageableWidth() - 2.5, pf.getImageableHeight() - 2.5);
Dimension d = getSize();
double scale = Math.min(pf.getImageableWidth() / d.width, pf.getImageableHeight() / d.height);
if (scale < 1.0)
g2.scale(scale, scale);
if (centered)
g2.translate(-d.width - 2.5, -d.height - 2.5);
paint(g2);
return Printable.PAGE_EXISTS;Hi Eswar,
Even 10 points are not enough to show my gratitude.
I really appreciate the help extended by you.
Able to send the file as PDF attachment without any fuss.
bcs classes are new to me.
One more question.
I hard coded the mail ID. if i need to pass multiple mail id's i need to declare p_mail as internal table or ranges and append them to p_email! am i right?
l_recipient = cl_cam_address_bcs=>create_internet_address( p_mail ).
CALL METHOD l_send_request->add_recipient
EXPORTING
i_recipient = l_recipient
i_express = 'U'
i_copy = ' '
i_blind_copy = ' '
i_no_forward = ' '. -
Hi pls help me with this speck.. very urgent...
REPORT zm_material_prodhier_update MESSAGE-ID zsd
NO STANDARD PAGE HEADING
LINE-SIZE 160.
Tables
TABLES: mara,mvke.
Data Definitions.
TYPES: BEGIN OF ty_mat,
matnr TYPE mara-matnr,
vkorg TYPE mvke-vkorg, " Sales Org
vtweg TYPE mvke-vtweg, " Dist. Channel
prdha TYPE mara-prdha, " Prod Hierarchy
err(60) TYPE C,
END OF ty_mat.
DATA: gt_matnr TYPE STANDARD TABLE OF ty_mat WITH HEADER LINE,
gt_matnr_err TYPE STANDARD TABLE OF ty_mat WITH HEADER LINE.
DATA: gs_matnr_err TYPE ty_mat.
DATA: lv_file_name TYPE string,
lv_message(200) TYPE c.
For BAPI
DATA: headdata TYPE bapimathead,
clientdata TYPE bapi_mara,
clientdatax TYPE bapi_marax,
return TYPE bapiret2,
salesdata TYPE bapi_mvke,
salesdatax TYPE bapi_mvkex.
DATA: ret TYPE STANDARD TABLE OF bapi_matreturn2 WITH HEADER LINE.
Selection Screen
SELECTION-SCREEN BEGIN OF BLOCK b001 WITH FRAME TITLE text-001.
SELECT-OPTIONS: s_matnr FOR mara-matnr,
s_vkorg FOR mvke-vkorg OBLIGATORY,
s_vtweg FOR mvke-vtweg OBLIGATORY,
s_matkl FOR mara-matkl.
SELECTION-SCREEN END OF BLOCK b001.
SELECTION-SCREEN BEGIN OF BLOCK b002 WITH FRAME TITLE text-002.
PARAMETERS: p_err TYPE localfile OBLIGATORY.
SELECTION-SCREEN: END OF BLOCK b002.
At selection screen
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_err.
PERFORM get_filename USING 'Output - Error File'
CHANGING p_err.
START-OF-SELECTION.
START-OF-SELECTION.
PERFORM 100_collect_dbrecs.
PERFORM 200_process_dbrecs.
END-OF-SELECTION.
*& TOP-OF-PAGE.
TOP-OF-PAGE.
WRITE: 40 'Material Product Hierarchy Update Report'.
ULINE (115).
*SKIP.
WRITE: /'MATERIAL'.
WRITE: /.
ULINE (115).
*& Form 100_collect_dbrecs
FORM 100_collect_dbrecs .
SELECT maramatnr mvkevkorg mvkevtweg maraprdha
INTO CORRESPONDING FIELDS OF TABLE gt_matnr
FROM mara INNER JOIN mvke
ON maramatnr = mvkematnr
WHERE mara~matnr IN s_matnr
AND mara~prdha NE space
AND mara~matkl IN s_matkl
AND mara~lvorm EQ space
AND mvke~vkorg IN s_vkorg
AND mvke~vtweg IN s_vtweg
AND mvke~prodh EQ space.
ENDFORM. " 100_collect_dbrecs
*& Form 200_process_dbrecs
FORM 200_process_dbrecs.
IF gt_matnr[] IS INITIAL.
MESSAGE s000 WITH 'No Materials Processed.'.
ELSE.
LOOP AT gt_matnr.
CLEAR: headdata,
clientdata,
clientdatax,
return,
salesdata ,
salesdatax,
ret.
REFRESH: ret.
Filling Material.
MOVE: gt_matnr-matnr TO headdata-material,
'X' TO headdata-sales_view.
Sales Org
MOVE: gt_matnr-vkorg TO salesdata-sales_org,
gt_matnr-vkorg TO salesdatax-sales_org.
*Dist Channel
MOVE: gt_matnr-vtweg TO salesdata-distr_chan,
gt_matnr-vtweg TO salesdatax-distr_chan.
*Prod Hierarchy
MOVE: gt_matnr-prdha TO salesdata-prod_hier,
'X' TO salesdatax-prod_hier.
PERFORM 220_bapi_call.
CLEAR: gt_matnr.
ENDLOOP.
Download Error Files
IF gt_matnr_err[] IS INITIAL.
no errors to be downloaded
ELSE.
Error File being downloaded.
lv_file_name = p_err.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = lv_file_name
filetype = 'ASC'
TABLES
data_tab = gt_matnr_err
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 99.
IF sy-subrc = 0.
WRITE: /05 'Error File Download - Successful.'.
ELSE.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
INTO lv_message.
FORMAT INTENSIFIED ON.
WRITE: /05 'Write error:', lv_message COLOR COL_NEGATIVE.
ENDIF.
ENDIF.
ENDIF.
ENDFORM. " 200_process_dbrecs
*& Form 220_BAPI_CALL
FORM 220_bapi_call .
DATA: lv_message(60) TYPE c.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = headdata
clientdata = clientdata
clientdatax = clientdatax
salesdata = salesdata
salesdatax = salesdatax
IMPORTING
return = return
TABLES
returnmessages = ret.
IF sy-subrc EQ 0.
MOVE : return-message TO lv_message.
IF return-type EQ 'E'.
WRITE: / gt_matnr-matnr,
'Change Failed -', lv_message.
MOVE-CORRESPONDING gt_matnr TO gs_matnr_err.
APPEND gs_matnr_err to gt_matnr_err. CLEAR gs_matnr_err.
ELSE.
WRITE: / gt_matnr-matnr,
'Change Successful -', lv_message, ' for ', gt_matnr-vkorg,' ', gt_matnr-vtweg.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
COMMIT WORK.
ENDIF.
ENDIF.
ENDFORM. " 220_BAPI_CALL
*& Form get_filename
Call up a dialog window to retrieve the filename
--> P_FILETITLE Dialog file title
<-- P_FILENAME FIle name retrieved
FORM get_filename USING p_filetitle TYPE c
CHANGING p_filename TYPE localfile.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
def_filename = ' '
def_path = ' '
mask = ',.,..'
mode = 'O'
title = p_filetitle
IMPORTING
filename = p_filename
EXCEPTIONS
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
OTHERS = 5.
ENDFORM. " get_filename
the program reads the product higher from Basic View to Sales View.
You all must be familiar with this program.
Modify the program with option(radio button) to be able to run the program in foreground and background.
Currently the program should in foreground mode.
Add to this program option so this program is executed in the background and the file is downloaded as well.
can anyone help me by editing the code n givin one sample prog..
kindly help.
Thnx
NaveenHi Naveen,
you mean background is job scheduling if yes you couldnt down load the file into Desktop bec sys my be swithc-off, in this case you can down load the file into application server or you can create the display normal report while program run in back ground.
Here i am giving code for background.
PARAMETERS : p_dload_fg AS CHECKBOX,
p_dload_bg AS CHECKBOX
download the data into Local pc file
IF p_dload_fg EQ 'X'.
PERFORM file_download.
ENDIF.
IF sy-batch NE space.
*Display normal report when this program put in
*batch job
PERFORM normal_report. " this is to dispaly normal report
download the data into Application Server
IF p_dload_bg EQ 'X'.
PERFORM file_download. " this is for down load the file into Apllication sercver.
ENDIF.
ELSE. " If program run in foreground.
IF NOT gt_matnr[] IS INITIAL.
*Display the output data in ALV
PERFORM alv_report.
ELSE.
MESSAGE s999 WITH text-001.
ENDIF.
ENDIF.
<b>
NOTE</b> : try to avoid the joins with replacing FOR ALL ENTRIES to better performance ,while selection the data from d/b.
Let me know if u have any doubts.
<b>Reward with points if helpful.</b>
Regards,
Vijay -
how do i get it to print the whole article? i don't seem to have a problem printing from my old windows laptop
melbaby_3 wrote:
when I clicked on your link and hit print, all pages were there!
That suggests there's no problem with Safari or Quartz, the PDF rendering engine used by Safari, Preview, and other Mac applications.
When I'm in the database and have the article open that I want to print, I click on the "full text in pdf" link and it opens in another safari window.
Does the PDF in this other Safari window have all the pages? If yes, why don't you print from this window?
It's very difficult to tell what might be going on if you don't give very specific details.
For instance, in many reference databases, full-text articles are not free. You have to pay to view them, either article by article, or by subscription. Your school may have such a subscription, but, if it does, you probably need to access the database through the portal, web site, or facility provided by your school (your school's librarian should be able to help you with that). If you don't, the database has no way of knowing you have a right to view the full text, and may give you just a preview or the article's first page.
Another possibility is that the database provides full-text PDFs in a format not compatible with Quartz, which may be able to render only the first page. But, in such a case, I'd expect Safari to print blank pages. If that's the case, you need to save the PDF on your hard disk and open it with Adobe Reader (Preview wouldn't work).
There are other possibilities, but these two seem to me the most likely.
Would I have to save it in preview first
You should save the PDF on your hard disk from Safari. (I think you should do this anyway, just in case you need to refer to the article again later.) Instead of just clicking the "'full text in pdf' link", press and hold Control, then click. This should give you a contextual menu; if the link points to a PDF file, you should see the commans "Save Linked File to 'Downloads'" and "Save Linked File As…". Use either, save the file, then, in Finder, double-click on it. Preview should open it.
It is possible that the link is not to a PDF file, but to a script which fetches that PDF file for you. In that case, it's pointless to download it. Click on it, and then, if the PDF viewing window opens in Safari, move the cursor towards the centre of the bottom of the window. A bar with commands should appear; one of them will download the file to your Downloads folder. -
Hi,
I got this code somewhere from the net.
import java.awt.*;
import javax.swing.*;
import java.awt.print.*;
/** A simple utility class that lets you very simply print
* an arbitrary component. Just pass the component to the
* PrintUtilities.printComponent. The component you want to
* print doesn't need a print method and doesn't have to
* implement any interface or do anything special at all.
* <P>
* If you are going to be printing many times, it is marginally more
* efficient to first do the following:
* <PRE>
* PrintUtilities printHelper = new PrintUtilities(theComponent);
* </PRE>
* then later do printHelper.print(). But this is a very tiny
* difference, so in most cases just do the simpler
* PrintUtilities.printComponent(componentToBePrinted).
* 7/99 Marty Hall, http://www.apl.jhu.edu/~hall/java/
* May be freely used or adapted.
public class PrintUtilities implements Printable {
private JFrame componentToBePrinted;
public static void printComponent(JFrame c) {
new PrintUtilities(c).print();
public PrintUtilities(JFrame componentToBePrinted) {
this.componentToBePrinted = componentToBePrinted;
public void print() {
PrinterJob printJob = PrinterJob.getPrinterJob();
printJob.setPrintable(this);
if (printJob.printDialog())
try {
printJob.print();
} catch(PrinterException pe) {
System.out.println("Error printing: " + pe);
public int print(Graphics g, PageFormat pageFormat, int pageIndex) {
if (pageIndex > 0) {
return(NO_SUCH_PAGE);
} else {
Graphics2D g2d = (Graphics2D)g;
g2d.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
disableDoubleBuffering(componentToBePrinted);
componentToBePrinted.paint(g2d);
enableDoubleBuffering(componentToBePrinted);
return(PAGE_EXISTS);
/** The speed and quality of printing suffers dramatically if
* any of the containers have double buffering turned on.
* So this turns if off globally.
* @see enableDoubleBuffering
public static void disableDoubleBuffering(Component c) {
RepaintManager currentManager = RepaintManager.currentManager(c);
currentManager.setDoubleBufferingEnabled(false);
/** Re-enables double buffering globally. */
public static void enableDoubleBuffering(Component c) {
RepaintManager currentManager = RepaintManager.currentManager(c);
currentManager.setDoubleBufferingEnabled(true);
}From my main class (where the JFrame resides), the print() method is invoked to print the JFrame. However, when it is printed, it only prints the top left part of the JFrame, not the whole JFrame. Can anyone help please? Thank you very much.public int print(Graphics g, PageFormat pageFormat, int pageIndex) {
if (pageIndex > 0) {
return(NO_SUCH_PAGE);
else {
Graphics2D g2d = (Graphics2D)g;
g2d.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
double xScale = 0.63;
double yScale = 0.56;
g2d.scale(xScale, yScale);
disableDoubleBuffering(componentToBePrinted);
componentToBePrinted.paint(g2d);
enableDoubleBuffering(componentToBePrinted);
return(PAGE_EXISTS);
}Hi all,
Alright I managed to scale it to print the whole JFrame. But another problem surfaces. When I select draft quality printing, it doesn't print the whole JFrame. Other printing qualities (standard, high) do print the whole JFrame. I am really puzzled. Anyone has any clue?
And I have an unrelated question to this topic. How do I set a JTextField so that when I click on it the first time, it highlights its content? Have to work around with the mouselistener?
Thank you. -
Freight cost condition for the whole purchase order (Header relation)
Maybe you could help me out with the following difficulty regarding freight costs for the whole purchase orders from the mass maintenance transaction MEK1 for pricing conditions.
I try to have one freight condition for the whole purchase order.
For instance, I maintained in the transaction MEK1 for the condition FRA1 the key combination vendor and purchasing organization (table 44) and entered an absolute value of X EUR.
Unfortunately this condition will not pulled as header costs in the purchase order, because I would have had defined an access sequence in the condition type, but this is not allowed for header conditions in general.
Do you have any workaround to maintain an item condition, which works like a header condition, so that I am allowed to have an access sequence and be able to maintain MEK1?
Any comments and help are very welcome.
Many thanks in advance
SabrinaHi,
Fright and discount conditions are called supplement conditon type and they are always matained with main condition type.
Please check PB00 condition type in m/06 transaction. You will find pricing procedure assinged as RM0002 to PB00 condtion type.
So you can maintain fra1 and other supplement condtions in main condtion only in MEk1 trasnaction.
By selecting the line item and then shift + F7 you can maintain fright or discount condtions for PB00 condition types with out having access sequence for supplement condtion types.
Regards,
shailesh Mackwan -
When I AirPrint The printer only prints a portion of the page. How do I get it to print the whole page.
It would help if you stated what printer you are using and what application you are doing the printing from. Also, what are you printing?
-
I frequently have a need to print a portion of a spreadsheet for a presentation, but find that I have to print the whole spreadsheet page to obtain the information I want. When I was using Microsoft Excel I could highlight a section of a spreadsheet and print only the highlighted rows. Is there some way that I can do this in Numbers? Help will be appreciated.
Numbers differs significantly from Excel in the print paradigm. If you enable Print View using the menu item "View > Show Print View", you will see exactly how each page will print.
A Numbers document contains Sheet.
Sheets contains a canvas, on which you place tables, graphics, text, and media. The canvas is continuous and is divided into pages at print time.
If you want to print just a portion of a table, select the area, copy, the open the Application Preview, select the menu item "File > New From Clipboard"
Then print -
When I try to print a photo from iphoto, I click print and the preview shows a lot of the photo cut off. It also prints this way. How can I print the whole photo?
After selecting File > Print, a pop-up window should appear. Select "Customize" and this should take you back into a panel within iPhoto. Towards the bottom, you should see an option for "Layout". Select this option and choose the correct photo orientation.
Hope this helps! -
Please help me with the following two questions, very urgent
Hi All,
Please help me with some scenerios about what are the common problems when modifying a standard script such a standard Invoice script and how can we overcome them.
What are the common problems encountered when working with SAP SMARTFORMS and how to overcome them?
Please help me with these questions, its very urgent.
Thanks in advance.
MD.hi
hope it will help you.
reward if ehlp.
How to create a New smartfrom, it is having step by step procedure
http://sap.niraj.tripod.com/id67.html
step by step good ex link is....
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
Here is the procedure
1. Create a new smartforms
Transaction code SMARTFORMS
Create new smartforms call ZSMART
2. Define looping process for internal table
Pages and windows
First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
Here, you can specify your title and page numbering
&SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
Main windows -> TABLE -> DATA
In the Loop section, tick Internal table and fill in
ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
3. Define table in smartforms
Global settings :
Form interface
Variable name Type assignment Reference type
ITAB1 TYPE Table Structure
Global definitions
Variable name Type assignment Reference type
ITAB2 TYPE Table Structure
4. To display the data in the form
Make used of the Table Painter and declare the Line Type in Tabstrips Table
e.g. HD_GEN for printing header details,
IT_GEN for printing data details.
You have to specify the Line Type in your Text elements in the Tabstrips Output options.
Tick the New Line and specify the Line Type for outputting the data.
Declare your output fields in Text elements
Tabstrips - Output Options
For different fonts use this Style : IDWTCERTSTYLE
For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
5. Calling SMARTFORMS from your ABAP program
REPORT ZSMARTFORM.
Calling SMARTFORMS from your ABAP program.
Collecting all the table data in your program, and pass once to SMARTFORMS
SMARTFORMS
Declare your table type in :-
Global Settings -> Form Interface
Global Definintions -> Global Data
Main Window -> Table -> DATA
Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
http://sapr3.tripod.com
TABLES: MKPF.
DATA: FM_NAME TYPE RS38L_FNAM.
DATA: BEGIN OF INT_MKPF OCCURS 0.
INCLUDE STRUCTURE MKPF.
DATA: END OF INT_MKPF.
SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
MOVE-CORRESPONDING MKPF TO INT_MKPF.
APPEND INT_MKPF.
ENDSELECT.
At the end of your program.
Passing data to SMARTFORMS
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORM'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'ERROR 1'.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
GS_MKPF = INT_MKPF
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Smartform
you can check this link here you can see the steps and you can do it the same by looking at it..
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
SMARTFORMS STEPS.
1. In Tcode se11 Create a structure(struct) same like the Internal table that you are going to use in your report.
2. Create Table type(t_struct) of stracture in se11.
3. In your program declare Internal table(Itab) type table of structure(struct).
4. Define work area(wa) like line of internal table.
5. Open Tcode Smartforms
6. In form Global setting , forminterface Import parameter define Internal table(Itab) like table type of stracture(t_struct).
7. In form Global setting , Global definitions , in Global data define Work area(wa) like type stracture(struct).
8. In form pages and window, create Page node by default Page1 is available.
9. In page node you can create numbers of secondary window. But in form there is only one Main window.
10. By right click on page you can create windows or Go to Edit, Node, Create.
11. After creating the window right click on window create table for displaying the data that you are passing through internal table.
12. In the table Data parameter, loop internal internal table (Itab) into work area(wa).
13. In table there are three areas Header, Main Area, Footer.
14. Right click on the Main area create table line by default line type1 is there select it.
15. Divide line into cells according to your need then for each cell create Text node.
16. In text node general attribute. Write down fields of your work area(wa) or write any thing you want to display.
17. Save form and activate it.
18. Then go to Environment, function module name, there you get the name of function module copy it.
19. In your program call the function module that you have copied from your form.
20. In your program in exporting parameter of function pass the internal table(itab).
SAP Smart Forms is introduced in SAP Basis Release 4.6C as the tool for creating and maintaining forms.
SAP Smart Forms allow you to execute simple modifications to the form and in the form logic by using simple graphical tools; in 90% of all cases, this won't include any programming effort. Thus, a power user without any programming knowledge can
configure forms with data from an SAP System for the relevant business processes.
To print a form, you need a program for data retrieval and a Smart Form that contains the entire from logic. As data retrieval and form logic are separated, you must only adapt the Smart Form if changes to the form logic are necessary. The application program passes the data via a function module interface to the Smart Form. When activating the Smart Form, the system automatically generates a function module. At runtime, the system processes this function module.
You can insert static and dynamic tables. This includes line feeds in individual table cells, triggering events for table headings and subtotals, and sorting data before output.
You can check individual nodes as well as the entire form and find any existing errors in the tree structure. The data flow analysis checks whether all fields (variables) have a defined value at the moment they are displayed.
SAP Smart Forms allow you to include graphics, which you can display either as part of the form or as background graphics. You use background graphics to copy the layout of an existing (scanned) form or to lend forms a company-specific look. During printout, you can suppress the background graphic, if desired.
SAP Smart Forms also support postage optimizing.
Also read SAP Note No. 168368 - Smart Forms: New form tool in Release 4.6C
What Transaction to start SAP Smart Forms?
Execute transaction SMARTFORMS to start SAP Smart Forms.
Key Benefits of SAP Smart Forms:
SAP Smart Forms allows you to reduce considerably the implementation costs of mySAP.com solutions since forms can be adjusted in minimum time.
You design a form using the graphical Form Painter and the graphical Table Painter. The form logic is represented by a hierarchy structure (tree structure) that consists of individual nodes, such as nodes for global settings, nodes for texts, nodes for output tables, or nodes for graphics.
To make changes, use Drag & Drop, Copy & Paste, and select different attributes.
These actions do not include writing of coding lines or using a Script language.
Using your form description maintained in the Form Builder, Smart Forms generates a function module that encapsulates layout, content and form logic. So you do not need a group of function modules to print a form, but only one.
For Web publishing, the system provides a generated XML output of the processed form.
Smart Forms provides a data stream called XML for Smart Forms (XSF) to allow the use of 3rd party printing tools. XSF passes form content from R/3 to an external product without passing any layout information about the Smart Form.
SmartForms System Fields
Within a form you can use the field string SFSY with its system fields. During form processing the system replaces these fields with the corresponding values. The field values come from the SAP System or are results of the processing.
System fields of Smart Forms
&SFSY-DATE&
Displays the date. You determine the display format in the user master record.
&SFSY-TIME&
Displays the time of day in the form HH:MM:SS.
&SFSY-PAGE&
Inserts the number of the current print page into the text. You determine the format of the page number (for example, Arabic, numeric) in the page node.
&SFSY-FORMPAGES&
Displays the total number of pages for the currently processed form. This allows you to include texts such as'Page x of y' into your output.
&SFSY-JOBPAGES&
Contains the total page number of all forms in the currently processed print request.
&SFSY-WINDOWNAME&
Contains the name of the current window (string in the Window field)
&SFSY-PAGENAME&
Contains the name of the current page (string in the Page field)
&SFSY-PAGEBREAK&
Is set to 'X' after a page break (either automatic [Page 7] or command-controlled [Page 46])
&SFSY-MAINEND&
Is set as soon as processing of the main window on the current page ends
&SFSY-EXCEPTION&
Contains the name of the raised exception. You must trigger your own exceptions, which you defined in the form interface, using the user_exception macro (syntax: user_exception <exception name >).
Example Forms Available in Standard SAP R/3
SF_EXAMPLE_01
Simple example; invoice with table output of flight booking for one customer
SF_EXAMPLE_02
Similar to SF_EXAMPLE_01 but with subtotals
SF_EXAMPLE_03
Similar to SF_EXAMPLE_02, whereby several customers are selected in the application program; the form is called for each customer and all form outputs are included in an output request
Advantages of SAP Smart Forms
SAP Smart Forms have the following advantages:
1. The adaption of forms is supported to a large extent by graphic tools for layout and logic, so that no programming knowledge is necessary (at least 90% of all adjustments). Therefore, power user forms can also make configurations for your business processes with data from an SAP system. Consultants are only required in special cases.
2. Displaying table structures (dynamic framing of texts)
3. Output of background graphics, for form design in particular the use of templates which were scanned.
4. Colored output of texts
5. User-friendly and integrated Form Painter for the graphical design of forms
6. Graphical Table Painter for drawing tables
7. Reusing Font and paragraph formats in forms (Smart Styles)
8. Data interface in XML format (XML for Smart Forms, in short XSF)
9. Form translation is supported by standard translation tools
10. Flexible reuse of text modules
11. HTML output of forms (Basis release 6.10)
12. Interactive Web forms with input fields, pushbuttons, radio buttons, etc. (Basis-Release 6.10) -
Print the whole site with one button
Hi All
This may sound like a stupid question, but
I wonder if someone can help me, is there a way of having a
button that would print the whole site - rather than separate html
pages. - without having/using a pdf file .
Regards
Lorna17No.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"lorna17" <[email protected]> wrote in
message
news:eci4gv$h7l$[email protected]..
> Hi All
> This may sound like a stupid question, but
>
> I wonder if someone can help me, is there a way of
having a button that
> would
> print the whole site - rather than separate html pages.
- without
> having/using
> a pdf file .
>
> Regards
> Lorna17
>
>
>
>
>
> -
What do I do when my printer will not print the whole page of something I wirelessly send to print
What exactly do I need to do when my printer will not print the whole page of a job i send to it wireless?
hi there,
could you provide the community with a little more information to help narrow troubleshooting? Things like your printer model and your operating system help out a lot.
You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too. -
the printer is not printing the whole page it is cutting the right side
hp photosmart 7520My HP Photosmart model 5520 is only printing part of a page.
-
Kernel panics, message saying "You need to restart your computer.Hold down the Power..." I am in the middle of HSC very URGENT please help!! Mac keeps needing to restart!!
I looked in console and its saying that it may be because of Sophos Anti-Virus, i deleted and uninstalled all traces of Sophos but looked in console and this is some of the lines coming up:
26/09/13 10:11:17.945 PM com.apple.launchd: (com.sophos.intercheck[6460]) posix_spawn("/Library/Sophos Anti-Virus/InterCheck.app/Contents/MacOS/InterCheck", ...): No such file or directory
26/09/13 10:11:17.945 PM com.apple.launchd: (com.sophos.autoupdate[6461]) posix_spawn("/Library/Sophos Anti-Virus/SophosAutoUpdate.app/Contents/MacOS/SophosAutoUpdate", ...): No such file or directory
26/09/13 10:11:17.945 PM com.apple.launchd: (com.sophos.notification[6462]) posix_spawn("/Library/Sophos Anti-Virus/SophosAntiVirus.app/Contents/MacOS/SophosAntiVirus", ...): No such file or directory
26/09/13 10:11:17.946 PM com.apple.launchd: (com.sophos.intercheck[6460]) Exited with code: 1
26/09/13 10:11:17.946 PM com.apple.launchd: (com.sophos.intercheck) Throttling respawn: Will start in 10 seconds
26/09/13 10:11:17.946 PM com.apple.launchd: (com.sophos.autoupdate[6461]) Exited with code: 1
26/09/13 10:11:17.946 PM com.apple.launchd: (com.sophos.autoupdate) Throttling respawn: Will start in 10 seconds
26/09/13 10:11:17.946 PM com.apple.launchd: (com.sophos.notification[6462]) Exited with code: 1
26/09/13 10:11:17.946 PM com.apple.launchd: (com.sophos.notification) Throttling respawn: Will start in 10 seconds
26/09/13 10:11:18.291 PM Safari: self <TabContentView: 0x7f8d5dd1aa50>
26/09/13 10:11:22.617 PM Safari: self <TabContentView: 0x7f8d5db7bb00>
26/09/13 10:11:27.866 PM Safari: self <TabContentView: 0x7f8d5c331a70>
26/09/13 10:12:19.939 PM com.apple.launchd.peruser.501: (com.sophos.uiserver[6487]) posix_spawn("/Library/Sophos Anti-Virus/SophosUIServer.app/Contents/MacOS/SophosUIServer", ...): No such file or directory
26/09/13 10:12:19.939 PM com.apple.launchd.peruser.501: (com.sophos.uiserver[6487]) Exited with code: 1
26/09/13 10:12:19.939 PM com.apple.launchd.peruser.501: (com.sophos.uiserver) Throttling respawn: Will start in 10 seconds"
Looked all over computer and cant find anything of Sophos please help very urgent!That was all that there was in the most recent one, how long do you think it could take to fix?
Here is the second most recent:
Wed Sep 25 15:39:39 2013
panic(cpu 0 caller 0xffffff80002c4794): Kernel trap at 0xffffff7f81757965, type 14=page fault, registers:
CR0: 0x0000000080010033, CR2: 0xffffff81acc397fe, CR3: 0x000000001e2b5025, CR4: 0x00000000000606e0
RAX: 0x000000001d31a000, RBX: 0x0000000000000000, RCX: 0x0000000000000000, RDX: 0x0000000000000000
RSP: 0xffffff80b0dbb710, RBP: 0xffffff80b0dbb820, RSI: 0x0000000000000000, RDI: 0x0000000000000001
R8: 0x000000000000000a, R9: 0x0000000000000378, R10: 0x0000000000000128, R11: 0x0000000000000378
R12: 0xffffff800c626400, R13: 0x0000000000000000, R14: 0x0000000000000000, R15: 0xffffff81acc39802
RFL: 0x0000000000010246, RIP: 0xffffff7f81757965, CS: 0x0000000000000008, SS: 0x0000000000000010
CR2: 0xffffff81acc397fe, Error code: 0x0000000000000000, Faulting CPU: 0x0
Backtrace (CPU 0), Frame : Return Address
0xffffff80b0dbb3c0 : 0xffffff8000220792
0xffffff80b0dbb440 : 0xffffff80002c4794
0xffffff80b0dbb5f0 : 0xffffff80002da55d
0xffffff80b0dbb610 : 0xffffff7f81757965
0xffffff80b0dbb820 : 0xffffff7f817667a0
0xffffff80b0dbb840 : 0xffffff7f8173a58e
0xffffff80b0dbb870 : 0xffffff7f8177fb6f
0xffffff80b0dbb8a0 : 0xffffff7f81779632
0xffffff80b0dbb8d0 : 0xffffff7f8177d7d5
0xffffff80b0dbb900 : 0xffffff7f8177c6db
0xffffff80b0dbb9e0 : 0xffffff7f817412b8
0xffffff80b0dbba10 : 0xffffff7f81778684
0xffffff80b0dbba30 : 0xffffff7f817449ce
0xffffff80b0dbbb60 : 0xffffff7f81741a4c
0xffffff80b0dbbbc0 : 0xffffff8000655f3e
0xffffff80b0dbbbe0 : 0xffffff800065681a
0xffffff80b0dbbc40 : 0xffffff8000656fbb
0xffffff80b0dbbd80 : 0xffffff80002a3f08
0xffffff80b0dbbe80 : 0xffffff8000223096
0xffffff80b0dbbeb0 : 0xffffff80002148a9
0xffffff80b0dbbf10 : 0xffffff800021bbd8
0xffffff80b0dbbf70 : 0xffffff80002aef10
0xffffff80b0dbbfb0 : 0xffffff80002daec3
Kernel Extensions in backtrace:
com.apple.driver.AppleIntelHD3000Graphics(7.3.2)[A2328231-E577-32FF-B20F-D08BDC FE9C51]@0xffffff7f81738000->0xffffff7f8179bfff
dependency: com.apple.iokit.IOPCIFamily(2.7)[5C23D598-58B2-3204-BC03-BC3C0F00BD32]@0xffffff 7f80889000
dependency: com.apple.iokit.IONDRVSupport(2.3.4)[7C8672C4-8B0D-3CCF-A79A-23C62E90F895]@0xff ffff7f80d2e000
dependency: com.apple.iokit.IOGraphicsFamily(2.3.4)[D0A1F6BD-E66E-3DD8-9913-A3AB8746F422]@0 xffffff7f80cf5000
BSD process name corresponding to current thread: WindowServer
Mac OS version:
11G63b
Kernel version:
Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64
Kernel UUID: FF3BB088-60A4-349C-92EA-CA649C698CE5
System model name: MacBookPro8,1 (Mac-94245B3640C91C81)
System uptime in nanoseconds: 1866666823698
last loaded kext at 480357661446: com.apple.filesystems.smbfs 1.7.2 (addr 0xffffff7f80795000, size 241664)
last unloaded kext at 303348424187: com.apple.driver.AppleUSBUHCI 5.1.0 (addr 0xffffff7f80af7000, size 65536)
loaded kexts:
com.sophos.kext.sav 8.0.14
org.virtualbox.kext.VBoxNetAdp 4.2.16
org.virtualbox.kext.VBoxNetFlt 4.2.16
org.virtualbox.kext.VBoxUSB 4.2.16
org.virtualbox.kext.VBoxDrv 4.2.16
com.logmein.driver.LogMeInSoundDriver 1.0.2
com.Greatdy.driver.SystemAudioCapture 1.0.0
com.apple.filesystems.smbfs 1.7.2
com.apple.driver.AppleHWSensor 1.9.5d0
com.apple.driver.AppleMikeyHIDDriver 122
com.apple.iokit.IOBluetoothSerialManager 4.0.8f17
com.apple.driver.AudioAUUC 1.59
com.apple.driver.AppleHDA 2.2.5a5
com.apple.driver.AppleMikeyDriver 2.2.5a5
com.apple.driver.AGPM 100.12.75
com.apple.driver.AppleUpstreamUserClient 3.5.9
com.apple.driver.SMCMotionSensor 3.0.2d6
com.apple.driver.AppleSMCPDRC 5.0.0d8
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AudioIPCDriver 1.2.3
com.apple.driver.AppleSMCLMU 2.0.1d2
com.apple.driver.ApplePolicyControl 3.1.33
com.apple.driver.ACPI_SMC_PlatformPlugin 5.0.0d8
com.apple.driver.AppleIntelHD3000Graphics 7.3.2
com.apple.driver.AppleBacklight 170.2.2
com.apple.driver.AppleLPC 1.6.0
com.apple.driver.AppleMCCSControl 1.0.33
com.apple.filesystems.autofs 3.0
com.apple.driver.AppleUSBTCButtons 227.6
com.apple.driver.BroadcomUSBBluetoothHCIController 4.0.8f17
com.apple.driver.AppleUSBTCKeyboard 227.6
com.apple.driver.AppleIRController 312
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 33
com.apple.iokit.SCSITaskUserClient 3.2.1
com.apple.driver.XsanFilter 404
com.apple.iokit.IOAHCISerialATAPI 2.0.3
com.apple.iokit.IOAHCIBlockStorage 2.1.0
com.apple.driver.AppleUSBHub 5.1.0
com.apple.driver.AppleFWOHCI 4.9.0
com.apple.driver.AirPort.Brcm4331 561.7.22
com.apple.driver.AppleSDXC 1.2.2
com.apple.iokit.AppleBCM5701Ethernet 3.2.4b8
com.apple.driver.AppleEFINVRAM 1.6.1
com.apple.driver.AppleSmartBatteryManager 161.0.0
com.apple.driver.AppleAHCIPort 2.3.1
com.apple.driver.AppleUSBEHCI 5.1.0
com.apple.driver.AppleACPIButtons 1.5
com.apple.driver.AppleRTC 1.5
com.apple.driver.AppleHPET 1.7
com.apple.driver.AppleSMBIOS 1.9
com.apple.driver.AppleACPIEC 1.5
com.apple.driver.AppleAPIC 1.6
com.apple.driver.AppleIntelCPUPowerManagementClient 195.0.0
com.apple.nke.applicationfirewall 3.2.30
com.apple.security.quarantine 1.4
com.apple.security.TMSafetyNet 8
com.apple.driver.AppleIntelCPUPowerManagement 195.0.0
com.apple.iokit.IOSerialFamily 10.0.5
com.apple.driver.DspFuncLib 2.2.5a5
com.apple.iokit.IOSurface 80.0.2
com.apple.iokit.IOFireWireIP 2.2.5
com.apple.driver.AppleHDAController 2.2.5a5
com.apple.iokit.IOHDAFamily 2.2.5a5
com.apple.iokit.IOAudioFamily 1.8.6fc18
com.apple.kext.OSvKernDSPLib 1.3
com.apple.driver.AppleGraphicsControl 3.1.33
com.apple.driver.AppleSMC 3.1.3d10
com.apple.driver.IOPlatformPluginLegacy 5.0.0d8
com.apple.driver.AppleSMBusPCI 1.0.10d0
com.apple.driver.AppleBacklightExpert 1.0.4
com.apple.driver.IOPlatformPluginFamily 5.1.1d6
com.apple.iokit.IONDRVSupport 2.3.4
com.apple.driver.AppleSMBusController 1.0.10d0
com.apple.driver.AppleIntelSNBGraphicsFB 7.3.2
com.apple.iokit.IOGraphicsFamily 2.3.4
com.apple.kext.triggers 1.0
com.apple.driver.AppleUSBBluetoothHCIController 4.0.8f17
com.apple.iokit.IOBluetoothFamily 4.0.8f17
com.apple.driver.AppleThunderboltDPInAdapter 1.8.5
com.apple.driver.AppleThunderboltDPAdapterFamily 1.8.5
com.apple.driver.AppleThunderboltPCIDownAdapter 1.2.5
com.apple.driver.AppleUSBMultitouch 230.5
com.apple.iokit.IOUSBHIDDriver 5.0.0
com.apple.driver.AppleUSBMergeNub 5.1.0
com.apple.driver.AppleUSBComposite 5.0.0
com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.2.1
com.apple.iokit.IOBDStorageFamily 1.7
com.apple.iokit.IODVDStorageFamily 1.7.1
com.apple.iokit.IOCDStorageFamily 1.7.1
com.apple.iokit.IOSCSIArchitectureModelFamily 3.2.1
com.apple.driver.AppleThunderboltNHI 1.6.0
com.apple.iokit.IOThunderboltFamily 2.0.3
com.apple.iokit.IOUSBUserClient 5.0.0
com.apple.iokit.IOFireWireFamily 4.4.8
com.apple.iokit.IO80211Family 420.3
com.apple.iokit.IOEthernetAVBController 1.0.1b1
com.apple.iokit.IONetworkingFamily 2.1
com.apple.iokit.IOAHCIFamily 2.0.8
com.apple.iokit.IOUSBFamily 5.1.0
com.apple.driver.AppleEFIRuntime 1.6.1
com.apple.iokit.IOHIDFamily 1.7.1
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 177.11
com.apple.kext.AppleMatch 1.0.0d1
com.apple.driver.DiskImages 331.7
com.apple.iokit.IOStorageFamily 1.7.2
com.apple.driver.AppleKeyStore 28.18
com.apple.driver.AppleACPIPlatform 1.5
com.apple.iokit.IOPCIFamily 2.7
com.apple.iokit.IOACPIFamily 1.4 -
File Print on the list item doesn't print the whole content in IE8
Hi,
I have this issue happened on my customer side. Their IE version is 8.0.7600.16385.
By using this version of IE to do a file > print of a list item with long html content, the html content will get chop off. Refer to the screenshots.
Print Preview
List Item
HTML code in the "Content" column
<div class="ExternalClass1BFFAF9C72F744C7899695B11ADC69F3"><p>Printing Issue Simulation</p>
<p><img alt="XXX.jpg" src="XXX.jpg" style="margin: 5px; width: 647px; height: 1000px"/><br/><br/>2012-06-18 17:29:47 - Processor architecture is (9)<br/>2012-06-18 17:29:47 - Reading the following string value/name...<br/>2012-06-18 17:29:47 - Common Startup<br/>2012-06-18 17:29:47 - from the following registry location...<br/>2012-06-18 17:29:47 - SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders<br/>2012-06-18 17:29:47 - The value is... <br/>2012-06-18 17:29:47 - C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup<br/>2012-06-18 17:29:47 - Trying to remove the startup task if there is any.<br/>2012-06-18 17:29:47 - C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\SharePointServerPreparationToolStartup_0FF1CE14-0000-0000-0000-000000000000.cmd<br/>2012-06-18 17:29:47 - Error: Startup task doesn't exist. This is not a continuation after a restart.<br/>2012-06-18 17:29:47 - Analyzing the following command line argument:<br/>2012-06-18 17:29:47 - /unattended<br/>2012-06-18 17:29:47 - Unattended installation<br/>2012-06-18 17:29:47 - Analyzing the following command line argument:</p>
<p><img alt="XXX.jpg" src="XXX.jpg" style="margin: 5px; width: 647px; height: 1000px"/></p>
<p> </p>
<p></p></div>
If file > print is done in higher IE version, it can be printed out nicely.
Is there a way to fix this issue as customer side may not able to upgrade to the higher IE version? e.g. CSS
Thanks in advance.
jingzo (^_^)Hi,
According to your description, my understanding is that the print function of IE8 doesnot print the whole content of SharePoint list item.
For troubleshooting your issue, please turn off Protection Mode for the IE8.
You can refer to the thread:
https://social.technet.microsoft.com/Forums/en-US/b8ab8f65-9b27-4a90-9323-0ca5b7e4466e/print-preview-print-of-web-pages-doesnt-work-in-ie8?forum=w7itproperf
Best Regards,
Eric
Eric Tao
TechNet Community Support
Maybe you are looking for
-
My iPad, Macbook and Apple TV are all set up with the same iCloud email address. I bought the iPhone 6 and accidentally set the iCloud up with a different email. My phone will not let me change the email address to be the same as my other devices,
-
I've lost the ability to grab the corners of boxes and scale...Help!
Mac based, Illustrator CS3. I've suddenly lost the ability to grab the corners of boxes and scale in illustrator - i must have accidentally turned something off - can someone tell me what i did worng and how to fix it? It's driving me crazy to scale
-
Networking Roku Box to internal Airport Extreme Card
Anyone? The Roku box recognized my iMac's wireless network, but it won't connect to my shared internet signal being broadcast by the iMac. Roku's forums are real hard to search in regards apple issues, as they just lump all networking together. THank
-
WCCP Creates additional tunnel interfaces
Hi, I'm having 2911 routers with Cisco WAAS module installed. While configuring the WCCP on the 2911 router, I see additional interface tunnels gets automatically created once I issue ip wccp 61 and ip wccp 62. It gives these tunnel ip address from 1
-
Xml flash action scprit - help
can someone please tell me how to fix this action script for a gallery so it plays through automatically? Please help im still learning this.