Javax.print problem: data not of declared type

Hi all,
I'm trying to print a simple text-only document with the below code but it keeps giving me an illegal argument exception. By the way, I've tried all the combinations of DocFlavor.*.* and SERVICE_FORMATTED.PRINTABLE and SERVICE_FORMATTED.PAGEABLE are the only ones working for me. Is this normal?
Thanks!
IllegalArgumentException:
java.lang.IllegalArgumentException: data is not of declared type
        at javax.print.SimpleDoc.<init>(SimpleDoc.java:82)
        at DiagnosticsPane.actionPerformed(DiagnosticsPane.java:350)
import java.io.*;
import javax.print.*;
import javax.print.attribute.*;
class testPrint
     public static void main(String args[])
          PrintRequestAttributeSet pras =     new HashPrintRequestAttributeSet();
          DocFlavor flavor = DocFlavor.SERVICE_FORMATTED.PRINTABLE;
          PrintService ps[] = PrintServiceLookup.lookupPrintServices(flavor, pras);
          PrintService defaultService = PrintServiceLookup.lookupDefaultPrintService();
          PrintService service = ServiceUI.printDialog(null, 200, 200, ps, defaultService, flavor, pras);
          if (service != null) {
               try {
                    DocPrintJob job = service.createPrintJob();
                    DocAttributeSet das = new HashDocAttributeSet();
                    FileInputStream fis = new FileInputStream("report.txt");
                    Doc doc = new SimpleDoc(fis, flavor, das);
                    try {
                         job.print(doc, pras);
                         System.err.println("Job sent to printer.");
                    } catch (PrintException e) {
                         System.err.println("Print error!\n\n" + e.getMessage());
               } catch (FileNotFoundException e) {
                    System.err.println("File not found!\n\n" + e.getMessage());
}

Hi duffymo,
I've tried all the available DocFlavors and even wrote a little program to list all my supported DocFlavors. And, I've only got 2 available for each of my printers, one being a Canon i320 and the other is a Adobe PDF printer.
import javax.print.*;
import javax.print.attribute.*;
class listDocFlavor
  public static void main(String args[])
    PrintRequestAttributeSet pras = new HashPrintRequestAttributeSet();
    DocFlavor flavor = DocFlavor.SERVICE_FORMATTED.PRINTABLE;
    PrintService ps[] = PrintServiceLookup.lookupPrintServices(flavor, pras);
    for (int j = 0; j < ps.length; j++) {
      DocFlavor df[] = ps[j].getSupportedDocFlavors();
      for (int i = 0; i < df.length; i++)
        System.err.println(j + ": " + df);
0: application/x-java-jvm-local-objectref; class="java.awt.print.Pageable"
0: application/x-java-jvm-local-objectref; class="java.awt.print.Printable"
1: application/x-java-jvm-local-objectref; class="java.awt.print.Pageable"
1: application/x-java-jvm-local-objectref; class="java.awt.print.Printable"

Similar Messages

  • Javax.print problems on applet - bug on mac os implementation?

    Dear All,
    I am working on an applet and application that include a print function and I get a weird behaviour on MacOS in applet mode (both with Safari and Firefox - Mac OS X Versione 10.4.9 (Build 8P135) ). In contrast, things work fine on Windows XP (both Explorer 7 and Firefox with Java Plug-in 1.6.0_01) and even in MacOS when using the application.
    The problems are:
    - the print dialogue goes on and off a few times before letting the user interact with it
    - the page format in the dialogue is set to A5 (instead of the printer's default)
    - there is a small empty window appearing together with the dialogue and not disappearing even after the applet is closed
    Is this a known problem? If so, are there work-arounds?
    (I had no luck on Google about this)
    To reproduce the problem I created a stripped down version of the applet, in 2 files, I report it at the bottom of this message. I am using a modified version the PrintUtilities class from http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-Printing.html
    Am I doing something wrong? Or shall I consider submitting a bug report?
    Any suggestion is welcome! Please let me know if I should provide more detailed information.
    Thank you in advance,
    Enrico
    PrintMe.java
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import javax.swing.JApplet;
    import javax.swing.JPanel;
    public class PrintMe extends JApplet implements MouseListener{
         private static final long serialVersionUID = 1L;
         private JPanel jContentPane = null;
         public PrintMe() {
              super();
         private class MyComponent extends JPanel{
              private static final long serialVersionUID = 1L;
              public void paintComponent(Graphics g) {
                   super.paintComponent(g);
                  Graphics2D g2 = (Graphics2D) g;
                  g2.setColor(Color.black);
                  g2.drawString( "Test text", 0, g2.getFontMetrics().getHeight() );
         public void init() {
              MyComponent aComponent = new MyComponent();
              jContentPane = new JPanel();
              jContentPane.setLayout(new BorderLayout());
              jContentPane.add(aComponent);
              this.setContentPane(jContentPane);
              this.addMouseListener(this);
         public void print(){
              try{
                   PrintUtilities.printComponent(this);
              }catch (Exception e) {
                   e.printStackTrace();
         public void mouseClicked(MouseEvent e) {
              print();
         public void mouseEntered(MouseEvent e) {
              // not used
         public void mouseExited(MouseEvent e) {
              // not used
         public void mousePressed(MouseEvent e) {
              // not used
         public void mouseReleased(MouseEvent e) {
              // not used
    PrintUtilities.java
    import java.awt.Component;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.print.PageFormat;
    import java.awt.print.Printable;
    import java.awt.print.PrinterException;
    import java.awt.print.PrinterJob;
    import javax.print.attribute.HashPrintRequestAttributeSet;
    import javax.print.attribute.PrintRequestAttributeSet;
    import javax.swing.RepaintManager;
    import javax.swing.RootPaneContainer;
    /** 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.
    *  If you are going to be printing many times, it is marginally more
    *  efficient to first do the following:
    *    PrintUtilities printHelper = new PrintUtilities(theComponent);
    *  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 Component componentToBePrinted;
         public static void printComponent(Component c) {
              new PrintUtilities(c).print();
         public PrintUtilities(Component componentToBePrinted) {
              this.componentToBePrinted = componentToBePrinted;
         public void print() {
              try{
                   PrinterJob printJob = PrinterJob.getPrinterJob();
                   printJob.setPrintable(this);
                   PrintRequestAttributeSet attributes = new HashPrintRequestAttributeSet();
                   if( printJob.printDialog(attributes) ){
                        try {
                             printJob.setJobName("MyName");
                             printJob.print(attributes);
                        } catch(PrinterException pe) {
                             System.err.println("Error printing: " + pe);
                             pe.printStackTrace();
              }catch (Exception e) {
                   e.printStackTrace();
         public int print(Graphics g, PageFormat pageFormat, int pageIndex) {
              if (pageIndex > 0) {
                   return(NO_SUCH_PAGE);
              } else {
                   RootPaneContainer rpc = (RootPaneContainer)(this.componentToBePrinted);
                   rpc.getRootPane().getGlassPane().setVisible( false );
                   Graphics2D g2d = (Graphics2D)g;
                   double sy = pageFormat.getImageableHeight() / componentToBePrinted.getHeight();
                   double sx = pageFormat.getImageableWidth() / componentToBePrinted.getWidth();
                   if( sx > sy ){
                        sx = sy;
                   }else{
                        sy = sx;
                   g2d.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
                   g2d.scale(sx, sy);
                   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);
    }

    Trying to answer to myself..
    Is it possible that the problems are due to me mixing java.awt.print and javax.swing.print ?

  • Script print problem - foot not updated

    Hi friends:
      When printing GR document, the PO No. at window foot of the doc is same.
      But infact the PO no. at foot is different.
      How can I get the right result? Thanks.
      PERFORM open_form_sammel.
    >>>SAMUEL20061011 BEGIN NEW SPOOL ID
      CALL FUNCTION 'START_FORM' .
      LOOP AT traptab.
        CALL FUNCTION 'WRITE_FORM'
               EXPORTING
                   ELEMENT = 'WE3BACOKOPF'
                   WINDOW  = 'RÜKOPF'.
        AT NEW EBELN.
          CALL FUNCTION 'END_FORM'    .
          PERFORM close_form.     
          PERFORM open_form_sammel.
          CALL FUNCTION 'START_FORM'. 
        ENDAT.
        CALL FUNCTION 'WRITE_FORM'
               EXPORTING
                 ELEMENT  = 'WE3FUSS'
                 WINDOW   = 'FUSS'
                 FUNCTION = 'APPEND'.
      ENDLOOP.
      CALL FUNCTION 'END_FORM'    .
      PERFORM close_form.

    Hi
    Check the type of FOOTER WINDOWS: if you need to print different data in different pages, that windows has to be VARIABLE and not CONSTANT.
    Max

  • Report prints Saved Data not Refreshed Data

    We were running VS 2005 and using the Basic CR 2005 Basic that comes with it.  We upgraded to use CR 2008 and found MANY issues after we went live in production that were apparent in the development.  This has caused a lot of stress with us as well as our users.  Iu2019ll summarize everything we found, possible workarounds and the open issues including the Printing/Loading of Saved Data.
    First, it was reported that printing changed.  It turns out when PrintMode = u2018PDFu2019 (default setting) it now asks after you choose u2018EXPORTu2019 (use to be u2018OKu2019) that it asks to Open or Save the Adobe.  When our customers were running 20 some reports at a time and we had hundreds of users, this became a nuisance for the heavy reporting users and a training issue in general for us.  With research, I found that we can change the PrintMode to be u2018ActiveXu2019.  This was much better when we were testing.  However, in Production it became a nightmare.  If the user is on a Domain that disallows itu2019s user from installing software or if the user has tight security settings, this became a nightmare.
    The second thing reported was that it was exporting to the wrong format.  It was exporting into RPT format.  It turns out with CR2008, it automatically defaults to RPT and the new pop-up, doesnu2019t isnu2019t clear to the user they even have a choice (the pop-up is much prettier, but it doesnu2019t look like a dropdown anymore).  In addition, they reported it was taking twice as long to export (we think it was related to export file type now).  With CR2005 Basic, it would have no default selection and if the user didnu2019t pick one, it would remind them they need to pick one.  After much research, I found there is no way to customize the operation of the export without writing my own export.  My users 90% of the time want to export to PDF and Excel the rest of the time.  Since we arenu2019t using a CR Server like product, they NEVER will do RPT.  There is no way with CR2008 to limit this list or to default the File Format.  So now, if they forget to select the type, they get the wrong file format instead of being reminded to select one.  Since the new pop-upu2019s dropdown selection isnu2019t easily apparent, this was a BIG issue for us.  Since I have close to 300 reports on 7 websites, this will be a lot of work for me to write my own code and change all the ASPX page to use my own control.
    The third thing reported was that the default name on Exporting was changed.  Export uses the ID property of the Crystal Report Viewer as the default name of a file on export.  When it replaced the viewer on all our pages, it set the ID to CrystalReportViewer1 instead of preserving the original ID.  We now have to go back and change them to what we wanted manually.  BEAWRE of this!  For our power users who wanted to export 40 reports they now have type the name in manually on all of them.  What took minutes now takes over an hour for them to do, until we can fix all the pages.
    Now it was reported that some reports are showing OLD data.  It turns out there shows Saved Data from design time.  In our site, we have a parameter page which getu2019s user selected parameters, save to a session and then load the report page using the session variables, and then redirect them to the report page which on page load we set the reports parameters.  We use the CrystalReportSource using ODBC.  The report has all the connection information.  Well if the user happens to select the same parameters I used at design time, it wonu2019t pull the data from the database.  They see our test data instead which is garbage.  If they select different parameters, display the report and then go back and select the original parameters, they will get the correct data.  This can be catastrophic for us!  So I added at the beginning of the Page Load before setting parameters the following:
         If Not Page.IsPostBack Then
                CRSServiceAlertsReport.ReportDocument.Refresh()
         End If
    This seemed to work.  A pain to add on every report page though when it wasnu2019t necessary before.  But then I just got called this morning and they say when they print, it prited the OLD data.  It seems the refresh pulled new data and updated the display in the viewer but the ActiveX print still used the original Saved Data!  I couldnu2019t find a solution for this.  I found switching PrintMode back to u2018Pdfu2019 worked but now I have the extra click issue again, which I described above.  I tried setting the reports u2018Discard Saved Datau2019 option but it still had the data!
    In the end, had I known about all these issues I would have NEVER upgraded to CR2008.  Iu2019m still looking for help on getting by the following:
    u2022     Stop using Saved Data at runtime (either on Display or Print)
    u2022     Getting the PrintMode=u2019Pdfu2019 to just pull up Adobe in Open mode without prompting the user.
    u2022     Remove File Type options from Export
    u2022     Set the default File Type options to nothing or something I want.
    Another nice feature to have would be the ActiveX control for printing to be part of the .NET Framework so users donu2019t need to download it.  Come on BO is a big company Iu2019m sure they can work with MS.  

    What is that method to clear Saved Data; I looked and couldn't find it.  I never had to call one in the prior version of CR 2005 Basic in .Net.  With the .NET controls, it always refreshed the data before.  This is a change in behavior for me.
    As for the Print using Adobe, with CR2005 Basic, it didn't prompt the user to Open or Save before.  This is new behavior.  It used to just open the report in Adobe in memory before without this specific prompt (it did have the first prompt for All or specific pages, but it would just open after that).  This is a change in behavior from prior versions and it has caused me several issues. 
    Many users don't like change and I didn't know to communicate this to them.  They were taken by surprise.  We'll learn to live it I guess, but I would ask you just to consider, why have an option to "Save" to PDF when you choose to print?  I would think you would use Export if you want to save.  It would never hurt to add an option to allow alternatives either.
    As for including with .NET Framework, it was just an idea.  I know how hard it can be working with third parties.  However, given that CR Basic comes with it, I thought it may be possible to work with them.  The better the integration the better the product is for the developers.  I was thinking the button could call JavaScript/Java to print instead of an ActiveX, or some other method.  Since I donu2019t know how the Control works, I couldnu2019t say.  It just would be nice.  I had a smiley face after that request, it didn't come out right when I saved the post.
    I still don't understand why .Refresh will update the data in the viewer but printing using the ActiveX Control will still print the saved data instead of refreshed data.  Since I never used this in the prior version I don't know what it would of done or not, but it just doesn't seem right it shows one set of data, and prints another.
    In addition, why the designer still saves data with the report when you state not to, I think may be a problem still.
    Edited by: Thomas Johnson on Nov 21, 2008 12:26 PM

  • Javax.print problem/question

    Hello there! I'm trying to implement a printService. My service implements PrintJobListener, because my UC requires that the user be notified about print errors (printer off, out-of-papper etc.).
    Problem is, the only method being called on PrintJobListener is printJobNoMoreEvents(PrintJobEvent pje) no matter if it succeeded or not.
    Here's my clasess implementations:
    PrintService (implements runnable ...)
    public void run() {
              try {
                   DocFlavor format = DocFlavor.BYTE_ARRAY.AUTOSENSE;
                   Doc doc = new SimpleDoc(data,format,null);
                   PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
                   aset.add(new Copies(1));
                   aset.add(MediaSizeName.ISO_A4);
                   aset.add(Sides.ONE_SIDED);
                   aset.add(PrintQuality.DRAFT);
                   // obt�m servi�o de impress�o default
                   PrintService service = PrintServiceLookup.lookupDefaultPrintService();
                   DocPrintJob job = service.createPrintJob();
                   PrintJobWatcher pjDone = new PrintJobWatcher(job,this);
                   job.print(doc, null);
                   pjDone.waitForDone();
                   } catch (PrintException e) {
                        //TODO alterar o status do pedido
                        e.printStackTrace();
    public class PrintJobWatcher {
          boolean done = false;
          private DrogatelPrintService printService;  
                 PrintJobWatcher(DocPrintJob job, DrogatelPrintService service) {
                     job.addPrintJobListener(new PedidoJobListener());
                     this.printService = service;
                 public synchronized void waitForDone() {
                     try {
                         while (!done) {
                             wait();
                     } catch (InterruptedException e) {
                 private class PedidoJobListener implements PrintJobListener {
                      public void printDataTransferCompleted(PrintJobEvent pje) {
                           allDone();
                      public void printJobCanceled(PrintJobEvent pje) {
                           printService.atualizarStatusPedido(FasePedidoEnum.ERRO_IMPRESSAO);
                           allDone();
                      public void printJobCompleted(PrintJobEvent pje) {
                           printService.atualizarStatusPedido(FasePedidoEnum.IMPRESSO);
                           allDone();
                      public void printJobFailed(PrintJobEvent pje) {
                           printService.atualizarStatusPedido(FasePedidoEnum.ERRO_IMPRESSAO);
                           allDone();
                      public void printJobNoMoreEvents(PrintJobEvent pje) {
                           allDone();
                      public void printJobRequiresAttention(PrintJobEvent pje) {
                           printService.atualizarStatusPedido(FasePedidoEnum.ERRO_IMPRESSAO);
                           allDone();
                      void allDone() {
                        synchronized (PrintJobWatcher.this) {
                            done = true;
                            PrintJobWatcher.this.notify();
    My printer is an epson U220B partial cut. Configured on windows 2000.
    Please if anyone has any ideas on this subject please give me a hand here, I'm kinda in a trouble here ;)
    Thanks all

    First, print the stack traces in your catch blocks: without that, how can you know that you have a problem?
    Second, try use AUTOSENSE instead of TEXT_PLAIN_US_ASCII.

  • Powershell Print FolderCreation Date Not working

    [System.Reflection.Assembly]::LoadWithPartialName('Microsoft.SqlServer.SMO') | out-null
    $dir = "D:\Script_Out"
    $creation_time = $dir | Select CreationTime
    "$creation_time" | Out-File 'D:\creationtime.txt'
    I tried executing the above.... The file has been created but the file has @{CreationTime=} .... Could anyone explain what's wrong with the code.....

    It looks like the function (Select
    CreationTime) you are trying is not working at all, I tried to display the value using write-host but it did not succedeed.
    Try as follows.
    [System.Reflection.Assembly]::LoadWithPartialName('Microsoft.SqlServer.SMO') | out-null
    $dir = "C:\Script_Out"
    $creation_time = Get-Item C:\Script_Out | Foreach {$_.LastWriteTime}
    write-host "the new value is $creation_time"
    "$creation_time" | Add-Content 'c:\task\creationtime.txt'
    You need to replace C: with D:
    Thanks
    Manish
    Please click Mark as Answer if my post solved your problem and click
    Vote as Helpful if this post was useful.

  • Pdf printing problem encountered in specific applications in the workspace.

    Hi,
    I am experiencing this problem which i am not able to figure out.
    After installing and configuring the BI publisher, for the newer applications i develop printing option works fine.
    But for the applications which were already present in the workspace before installing BI Publisher, when I press the download button(which should branch to the url specified in the report query), it is directed to the specified url but the page is blank. I do not get any pdf attachment for downloading.
    Could that be a problem in configuring the BI Publisher?
    Thanks.

    Hi Paulo ,
    Following information might help you to resolve the issue.
    An Acrobat PDF document generated from Web Intelligence XI Release 2 does not print correctly from some older Xerox printers. Some of the cells do not display the data that is there.
    Business Objects 5.1.x uses the PDF v1.2 conversion engine. BusinessObjects XI Release 2 uses PDF v1.5. Therefore, the fonts are rendered as TrueType in the resulting PDF file. To confirm this, open the PDF in Acrobat Reader and click File > Document Properties > Font tab.
    A PDF generated from BusinessObjects 5.1.x will have the font type as Type 1. A PDF generated from BusinessObjects XI Release 2 will have the font type as TrueType.
    As per the product group, it states that this is by design, as there can be other regression issues for using the older PDF conversion engine and Type 1 fonts.
    The printing problem has not been reported with newer printers.
    Regards,
    Sarbhjeet Kaur

  • Safari with OS 10.4.3: printing problem

    Since installing OS 10.4.3, when I print a "printer friendly" page from online newspapers like newyorktimes.com, it shrinks the text article to one page making the font extremely small and very, very difficult to read. With OS 10.4.2 and earlier OS's, it would print the printer friendly pages in their normal 12 or 14 point font. I have tried to find a preferences button to try to fix the problem, but no luck. Any help would be appreciated. Thanks.

    I'm also having this printing problem, but not just with the NY Times. I print pages from Wikipedia sometimes to reference Safari shrinks those pages down to unreadable sizes. This typically occurs when there are images on the page. I think it has something to do with Safari's print engine (doesn't it run off a style sheet?).
    Anyone else having problems with pages shrinking down to incredibly small sizes?

  • SQL Developer 3.0 data modeler print-to-pdf not working

    I am working in Windows XP. I am running SQL Developer version 3.0.04, which now includes a full-featured version of the Data Modeler. I have run into a problem with this version, which did not occur in the stand-alone version of the Data Modeler.
    When I try to print a data model diagram [File -> Data Modeler -> Print Diagram -> To PDF file], a PDF file is generated. When I try to open that PDF file with Adobe Reader (version 9.4.3) I get the following error message:
    "Adobe Reader could not open 'finename.pdf' because it is either not a supported file type or because the file has been damaged(for example it was sent as an email attachment and wasn't correctly decoded)."
    Furthermore, the size of the file in question is 0 bytes. When I use the same process in the stand-alone version, a readable PDF file is created whose size is 858 bytes.
    The 'print to IMAGE file' option works well in both versions.
    Any help resolving this would be appreciated.

    I am having almost same problem. PDF file is genereted about 400K but blank.

  • Arabic data not getting printed correctly

    Dear Freinds,
               I have developed a smartform where in i have to print the English Name and Arabic name one below the other .
    So to ge the ARabic letters to be get printerd i have used the Device type ARSWIN,
    i can see now the data  being displayed correctly for Arabic name in PRINT PREVIEW ,however when i take printout of the same in the printer which is assigned to my system i can see that the data is getting jumbled on the printed stationery and i can very cleary see that data which is there on Print preview is different to that printed matter , so i have checked with my Arabic collegue and he said  after reading the print preview that it is getting displayed correctly but the data in the printed output paper is not correct  .
    So  I really not able to figure out why it is displaying correctly in Print Preview and not getting this printed  on the printed stationery .  Could any one please help me out what i should do in gettign the data also correctly in the Printed data on the Stationary paper.
    Thanks & Regards
    Divya.
    Edited by: Divya Kumari on Oct 3, 2011 7:48 AM
    Moderator Message: Moved to right forum.
    Edited by: kishan P on Oct 3, 2011 11:24 AM

    Hi,
    Now i understood your problem.
    I think you are using Text Elements to print Arabic Text.
    Use Include Text instead of Text Elements.
    By using So10 you can create Standard Texts.
    Note: Create these standard texts under language key "AR".
    Hope it solve your problem.
    Regards,
    Suresh
    Edited by: suresh kumar on Oct 16, 2011 6:33 PM

  • Script 2nd page-data not getting printed

    Hi Folks,
    I have a script which is related to TDS Certificate.The problem is I am having all the data in the table that is used to print the data but I am not getting only the tabular column i.e contigious data printed for the next page.The rest all getting printed correctly.
    To be clear
    first page is having
    index,belnr,total amount,educess,sur charge etc.
    1/10100/22.00/33.00/44.00/77.00
    in the second page again it should print again
    index belnr total etc but it is not getting printed.
    blank
    But the final  table is having 2 belnrs data.Where I am going wrong?
    Thanks,
    K.Kiran.

    Hi,
    During test print, you cannot see the second page.
    The second page will be visible only when there is data flow from page 1 to page 2.
    Execute with actual data and check if it flows through to page 2.
    Also Please try this:
    After your first page, include this:
    CALL FUNCTION 'CONTROL_FORM'
    EXPORTING
    command = 'NEW-PAGE'.
    and then call the the write form with text element in second page,
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    element = 'PG2'
    window = 'INV'
    EXCEPTIONS
    element = 1
    function = 2
    type = 3
    unopened = 4
    unstarted = 5
    window = 6
    bad_pageformat_for_print = 7
    OTHERS = 8.
    Reward points if found helpful…..
    Cheers,
    Chandra Sekhar.

  • When printing page data in Schwab, the font is so tiny it's almost invisible - this does not happen in Windows Exploror.

    On 2/20/2013 all printing was normal. On 2/21/2013 not only did the printing not work, but PDF files did not show up properly. Is this a new version of Firefox? I got the PDF reset so that works now, but not the printing. In Comcast email, the date field shifts way to the right and forces the font smaller. When I uncheck "shrink to fit" it does not wrap the text but rather chops it off when I increase the font size.
    Today I tried printing pages from Schwab using their "Print Page" button which always worked in the past but today it was unreadable.
    Can I go back to the previous version of Firefox?

    https://support.mozilla.org/en-US/kb/fix-printing-problems-firefox

  • Goods Receipt Note - printing problems

    Hi there
    I have a couple of issues regarding printing problems for Goods Receipt Notes.
    The 1st problem
    Only the first line item is printed on the GRN, all the other line items are omitted from the GRN.
    The 2 nd problem
    When doing a Non-stock item GRN it does not print at all.
    The 3 rd problem
    Our stock count sheet only print 300 line items at a time and it is also not in sequence.
    Another printing problem is with our picking list
    Here what happens is that instead of the picking list skipping the "perforate section" at the end of each page, it just continious printing one stroke through without any intervals.
    Then the last issue but with printing of Reservations, is that even though we have zero stock on hand, the reservations are still being printed. This causes a problem not only waisting paper, but we have to go through those lists to identify the actual reservations that can be issued.
    Please can anybody help?
    Regards
    Sonja

    in NACE Tcode
    u can Find
    choose ur application and press output type...
    select ur output type and press processing routine...
    u will find the progran name and form name..
    if it is usefull plz reward
    Regards
    Anbu

  • How to prevent  a printing of Delivery Note for Spcecific Material Type

    Hi,
    I had a requirement wherein it was required to "Prevent Mask Delivery notes from printing to Shipping dept"
      addition info:  All delivery notes are currently set to print in shipping. We can put in a logic to prevent the printing of
      delivery note for a specific material type (like mask)
      for this i used copy control routine 'RV61B902' in the include  for tcode vl02n or vl01n..
      my logic is fine..
    include 'RV61B902'.
    sy-subrc = 0.
    DATA : w_matnr LIKE lips-MATNR.
    IF T683S-KSCHL = 'LD00'.
      IF sy-tcode = 'VL01N' OR SY-TCODE = 'VL02N'.
        select  matnr into w_matnr  from lips where vbeln eq komkbv2-vbeln.
          condense w_matnr.
          if W_matnr cs '*MASK'.
              SY-SUBRC = 4.
              exit.
            endif.
        ENDSELECT.
      ENDIF.
      ENDIF.
      question : My check was overwritten by the subsequent logic
    please advise.
    ESWAR
    Edited by: tarakeswar  rao on Nov 5, 2008 3:39 PM

    end user wants output to be stopped right, that will be controlleed in Output requirement only.
    What does that has to do witj copy control. It will not do anything in your case

  • Printing problem linked to EXIF time data for JPEG images.

    For some years I have been using Photoshop Elements 8.0 with no problems of any kind. My computer runs on XP Professional with a system comfortably in excess of the minimum requirements to run Elements 8.0. I load my images into Elements from a card reader which is the same one since I got this version of Elements. I shoot mostly in JPEG with a Nikon D300. I print to one of 2 Epson printers, an SX100 and a PX700W. I don't use the wireless feature of the PX700W, connecting it via USB.
    About a year ago I suddenly began to experience printing problems. If I tried to print an image Elements crashed just at the point where printing would begin. By trial & error I discovered that if I adjusted the time in the EXIF data of the image in Elements, whether by advancing or retarding it by hours or days and then adjusted it back to the original time I had no problems printing that image thereafter.
    I also discoveredc that where I had shot in RAW I could print direct from the RAW image in Elements or from the JPEG I saved from an edited in RAW and had no problems.
    I saw the forum discussions about the issues about the date/time in EXIF having been changed following the import into Elements. For those images I still had on my memory cards I checked the EXIF data in Elements and compared it what was on the image on the card. They were the same. I also checked the time zone and time settings of the camera and they were correct.
    I backed up my catalog, re-formatted the computer to bring it back to its ex-factoy status, re-installed Elements and restored my catalog. I imported new images, tried to print them and the problem was still there.
    Before I might upgrade to Photoshop Elements 10 I'm hoping someone else may tell me they have had the same problem and, hopefully, be able to tell me how they fixed it. I know the workaround will bypass the problem but it really annoys me that it suddenly appeared and I seem to be stuck with it. I'm also concerned that, given I totally re-formatted my computer but the problem  is still with me, that the problem may be imbedded in my catalog and simply gets backed up to,\and restored from,  my backup.
    I'd be grateful for any ideas.

    Hi Miceal,
    Though I'm not sure, but see if Catalog repair and optimize helps resolve the issue.
    For doing this, click File >> Catalog and selec your catalog and then click "repair' button.
    Tick the checkbox for rebuilding indices in the repair workflow.
    Now perform the optimize operation on the catalog similarly.
    Let me know if that helps.
    Thanks
    andaleeb

Maybe you are looking for

  • Is it possible to download only Software Updates for multiple Macs.

    We currently have two 24inch iMacs, a 15 inch and a 17 inch MacBook Pro and a MacBook and only have limited download speeds in our regional area and only 1 Gb of data download allowance a month. Is there any way we can "download only" software update

  • Anchor Link for an Image

    Hi There I am trying to create an anchor link in a site that I have built and need it to link to an image rather than a piece of text.  Does anyone know how you do this please I am using CS4 - thanks. G (Question - are Chocolate Chip Cookies bad for

  • SAP NW BRM (java) and ABAP Customizing Tables

    Hi, A lot of "rules" of standard SAP (ERP for example) is traditionally located in Customizing Tables. What is the nicest way to integrate those "rules" with NW BRM without creating double maintenance, or UI disconnects (where the user has 2 apps ope

  • Error100

    How doe i solve error 100. It pops up on the download assistant when I try downloading trial version dreamweaver. Says it cannot communited with adobe.com. that i should check network and re-start the download assistant. Tried all that but it does no

  • I just. Bought an iPad air 2  about two weeks ago. Was working great then it froze on me shut off and won't turn on now?

    I just. Bought an iPad air 2  about two weeks ago. Was working great then it froze on me shut off and won't turn on now?