Print dynamic document without viewing it

Hi Guys,
I have a problem with the class cl_dd_document.
The manual says that it is possible to print a dd_document without viewing it, it says:
1. Build document
2. Merge document
3. Print document
Until step 2 theres no Problem, but when i call the method print_document( ) the report crashes.
The dump information indicates that there's a null-pointer-exception for a html_control.
is it impossible to call this method, without displaying the document in a custom control first?

Hi,
if you are in ECC 5.0 version then check the example <b>DD_STYLE_TABLE</b> there you have option to print in the output , it is working fine.place a button in the screen and when you click on it , in PAI do this code.
MODULE USER_COMMAND_0100 INPUT.
  CASE SY-UCOMM.
    WHEN 'BACK'.                       "Beenden
      LEAVE PROGRAM.
    <b>WHEN 'PRN'.
      CALL METHOD DO->PRINT_DOCUMENT
              EXPORTING REUSE_CONTROL = 'X'</b>.
regards
vijay

Similar Messages

  • How do I select to print a document without margins?

    How do I select to print a document without margins?

    fieldhockey,
    The printer driver is the software that drives the printer.
    You can File>Print Setup, then select the printer (driver) by its name in the dropdown list. Note that there may be different drivers for one and the same printer (such as PostScript and non PostScript, borderless and non borderless).
    Choosing a borderless printer (driver) the printable area should be identical to the Artboard (with no dotted line inside to show the boundary between printable area and paper edge).

  • Printing a document without opening it in Oracle Forms 10g

    Hi Friends,
    This is my first thread in this forum. Please any one give me a solution for my below request.
    We use oracle 10g and windows (any version). I want to print some files available in a folder without opening it (run in background) through oracle forms.
    My requirement is:
    A folder contains 10 files of word and excels documents. The client machine user (for example 3 clients’ machines who has different default printer configuration) has to trigger the print command to print the documents.
    * I have found Article "Java Bean to print a file to Local Printer" (http://forms.pjc.bean.over-blog.com/article-6621538.html). I do think it will help.
    * I have found a windows command prompt print concept.
    PRINT mytext.txt /D:LPT2
    Prints a text file.
    PRINT [D:device] [[drive:][path]filename[...]]
    /D:device specifies a print device.
    * The command prompt print syntax is used with webutil function as given below.
    CLIENT_HOST('cmd PRINT mytext.txt /D:LPT2);
    1) is the web util syntax only enough for this requirement?
    2) In this how to find the default printers in each client machines and use in the place of syntax?
    3) Or any other ways available for this requirement.
    I look forward solution for this question....!

    Hi Jeshra,
    Another option would be to find or write a Windows PowerShell script to print any file and then call that from CLIENT_HOST. Many file types, including Microsoft Office files, have a print operation registered with Windows so you can right-click on them in Windows Explorer and choose "Print." You should be able to exploit this ability with PowerShell.
    A quick Google search revealed this potential PowerShell solution:
    http://powershell.com/cs/blogs/karl-prosser/archive/2009/02/10/print_2D00_file_2D00_function.aspx
    PowerShell is installed by default only on Windows 7 so you would have to install it on older Windows clients.
    Hope that helps,
    Brian

  • Create Dynamic documents without screen.

    Is this possible ?
    Create a dynamic document (CL_DD_DOCUMENT) without creating any screen.
    Thank you.

    Is this possible ?
    Create a dynamic document (CL_DD_DOCUMENT) without creating any screen.
    Thank you.

  • Printing dynamic documents

    Hi,
    I was using dynamic documents for creating tables and forms. I used the print_document command for printing the tables. The problem is that the document does not print from my machine but I could print it from 3 other machines. Is there any specific setting that I need in order to print from my machine?
    Thanks,

    Hi.,
    Back Ground will not be print using cl_dd_document.,  Check  DD_STYLE_TABLE  Program.. this will help u., to print document.,
    also you can see backgrund colors cannot be print...  but you can print text color..
    hope this helps u.,
    Thanks & Regards,
    Kiran

  • Printing material-documents without flag (parameter NDR)

    Hello everybody,
    I've got a question regarding printouts of material-documents. Normally the printout is done via condition-technique. Now my customer asks for a printout even if the flag for the printing is NOT set (Parameter NDR) in the document-header.
    Does anybody know how to solve this request? Is there a user-exit where I can check the requested requirements?
    Thanks for an answer,
    Thomas

    Hello Thomas,
    The "print flag" (GOHEAD-XNAPR) is for selecting the print version (field WEVER). In standard all output are dependend on the print version (WE01 on version 1, WE02 on version 2, etc).
    If you set NDR = blank and GOHEAD-XNAPR not flag, I think the solution is to create a access table and add to the access sequence that is linked to the output type, WA03 for example. Then these customized condition tables must not check the "print version" (WEVER). As a result the output are independend from setting the print flag and thereby  selecting a print version.
    You need to test this solution but I think it can work.
    BR,
    Rodrigo

  • To print a document without first saving

    When I want to print een PDF file, the file will be safe first and than it will be printed. I want to know how I can skip saving the file first.

    Hey peterb6142059,
    Choosing 'Adobe PDF' as the printer in your application will always show the 'save as' dialog box first to create a high quality PDF instead of a printout.
    Regards,
    Anubha

  • Print HTML doument without open it from an applet

    I need to know how I can print an HTML document from an applet developed with Jbuilder 4. I'm not a very expert developer and I need a detailed information about this problem. Important is that the HTML document is printed without open it.
    I use: win 2000 pro
    J2RE 1.4.0
    thanks in advance for your help
    Mauro Losa

    Thanks for your help but my problem is that i want print the document without display it.
    I think to have find a solution using Java Print Service API (JDK 1.4) but when i run the example the system display this error refered to this instruction
    "PrintService[] pservices = PrintServiceLookup.lookupPrintServices(flavor, aset);":
    java.lang.UnsatisfiedLinkError: getDefaultPrinterName
    at sun.print.Win32PrintServiceLookup.getDefaultPrinterName(Native Method)
    at sun.print.Win32PrintServiceLookup.getDefaultPrintService(Unknown Source)
    at sun.print.Win32PrintServiceLookup.getPrintServices(Unknown Source)
    at sun.print.Win32PrintServiceLookup.getPrintServices(Unknown Source)
    at javax.print.PrintServiceLookup.getServices(Unknown Source)
    at javax.print.PrintServiceLookup.lookupPrintServices(Unknown Source)
    at untitled4.applet1.main(Applet1.java:32)

  • Printing Word Documents on HP Deskjet 5150

    I have a G4 flat panel iMac connected to a HP deskjet 5150 printer. When I try to print Word documents, it will only print a single page of multipage documents. If I want multiple copies of a single page document, it will only print one copy. All other applications print without problem.
    I have reinstalled the drivers and that has not solved the problem.
    Any help would be appreciated.
    iMac G4   Mac OS X (10.3.9)  

    Hi Georgia and others,
    I have a similar problem - but printing from Word to a HP DeskJet 960 printer.
    It dones not seem to be a problem with all documents here, but since I yesterday used several hours trying to figure out what caused the problem I want to share my experiences with you. I had the same problem with another document on the same printer some moths ago (but not on our Laser printers at my company office).
    I installed the newest printer driver from HP (several times) with no effect. After opening the document and saving it to a ".txt" document - without any formatting - the whole document got printed! This is not a real solution in most cases, as one loses all the formatting etc. But it indicated to me that the printer worked and communicated with word. Also it was possbile to print (other) documents without any problems to the same printer, at the same time.
    So have you tested different documents on your printer?
    I'm wondering if this indicate that the problem is hidden somewhere in something inside Word/Office and it's communication to the printer - as I have seem someone reporting similar problems with printing from Excel? (something with some "codes" in specific documents?).
    Also, I have seen an update from Apple on some issues with printing from Preview - so I was also wondering if the use of "Show quick Preview" in Word/Office does has something to do with this problem? Has anyone tried to de-select this feature before trying to print? (I deleted the problematic document and can not re-create the problem currently).

  • How to print html file on client system without viewing data on client syst

    I want to print html data from database.
    i am not able to print it using java code,
    javascript can do that.
    but in javascript window is opened on client browser.
    but i dont want to open that
    var disp_setting="toolbar=no,location=no,directories=no,menubar=no,";
           disp_setting+="scrollbars=no,width=0,height=0";
         var docprint = window.open("","",disp_setting);
         //docprint = new PopUpWindow() ;
         docprint.document.write('<%= mm %>');
         docprint.document.close();
            docprint.focus();
         docprint.document = null; mm contents the data to be printed. it prints well but window is shown
    in mm there is <BODY self.print() > so it prints on printer but i am viewing window i donot want to view window....
    and print Dialog box also.. I want to by pass this both.
    please send me code or any help regarding that.
    ....

    1. Post a javascript question on a javascript forum please.
    2. Don't think you can bypass without some plugin/setting on the client browser.

  • Using Firefox, I used to be able to open a document on a website and look at it without downloading.  Now, I must download a document in order to view it.  How can I change settings so that I can open documents without saving them?

    Using Firefox, I used to be able to open a document on a website, such as a bank statement, and view it without downloading.  Now, I must download and save a document before I can view it.  How can I change settings so that I can open documents without saving them first?

    Do you know what kind of docs they are? Did you upgrade/Update Firefox lately?
    https://addons.mozilla.org/en-US/firefox/addon/pdf-download/
    http://kb2.adobe.com/cps/333/333563.html
    https://addons.mozilla.org/en-US/firefox/addon/open-it-online/

  • How to print color document in greyscale without it being really dark?

    Recently had a customer come in and want some holiday letters printed out. They had a bunch of color photos in the document and when we printed that from Adobe Acrobat to our black and white copier, they came up REALLY black. Everything was much darker that it should have been.
    Normally we work around this issue by placing the document into InDesign and printing it in Greyscale mode from there since you can tell it RGB, CMYK or Greyscale from InDesign. Problem is, if I wasn't here, nobody else would know how to do this and they would probably have to turn the customer away.
    Our counter machine is a WindowsXP machine with the newest version of Acrobat Reader. I saw this link elsewhere here:
    http://forums.adobe.com/thread/948555?tstart=0
    But that doesn't work. When clicking on Advanced button in the print window for Acrobat Reader, the Advanced window doesn't have anything about printing in greyscale. The copier is a Canon iR 7095.
    Any thoughts on what we can do? Basically, I want to be able to have the ladies that work the counter (and the counter PC) to be able to print color documents to the black and white machine without having a problem with the output and having to either come into my office and have me help with it, or having to turn the customer away.
    Any thoughts?

    go to Files --> Add Files to Upload

  • Which app is the best for viewing documents without sliding while zooming?

    I have many novels saved under *.htm, doc and pdf.
    I'm using Quick Office, but when I zoom in, I have to slide the screen from side to side just to watch the whole things, which make my eyes feel very tired.
    So I need your help about which app is the best for viewing documents without sliding while zooming, I mean, when you zoom in, you just have to slide vertically to see the whole documents, and don't have to slide horizontally.

    shazeal wrote:
    There is a big difference between Windows and Linux, the scheduler being the biggest. Here are 3 shots from oblivion, I tried to keep the Tri-passes around 400-450k, and the texture mem is ~ the same in all 3.
    The first two also have, Apache, Dovecott, Mysql, Samba, and SSHD running in the back ground, these were all stopped for the 3rd.
    Gnome Desktop 2.2.4 Full bloated install - All background services running, run from gnome terminal, Firefox open. Consonance Music player running.
    http://img525.imageshack.us/img525/1551 … tc5.th.jpg
    Xorg only no WM, with urxvt console open to launch the game, nothing else running except background services.
    http://img265.imageshack.us/img265/34/s … zu1.th.jpg
    Xorg only, all non essential services stopped.
    http://img225.imageshack.us/img225/7540 … zd7.th.jpg
    All running on Wine 1.1.7, Oblivion is running around 150 mods, and QTP3, Body mods, High res texture packs for the character skins, with HDR lighting. As you can see the FPS does not change, it fluctuated between 19-20 on all three runs.
    Especially with Dual cores, you will find that games do not loose FPS even with things like a lightweight music player running in the background. Windows scheduler simply was not made for that kind of thing, and benifits alot more from a lower number of background processes. I wont say linux does not benifit, but with Dual cores and CFS, it is not really noticable anymore.
    Wait, does that mean you have better performance while you are running more stuff? Does the desktop manager handle graphics better?
    This really did confuse me...

  • I would like to set my preferences so that documents always print double-sided without having to click anything other than "print".

    I'm trying to set my preferences so that all documents print double-sided automatically without my having to remember to click the "Print on both sides of paper" button.  I print literally thousands of PDF files!  Duplexed.  How do I set this as a preference?  PS: I work on a MAC OS X and I have Adobe Acrobat X 10.1.12.

    I'm not trying to set the printer preferences, I'm trying to set the
    Adobe Acrobat Printer defaults.  If I don't click on "Print on both
    sides of paper" in the Acrobat Print box, then that overrides my printer
    default and prints the document single sided.  In the "good old days" I
    just chose "Duplex" under "Advanced" and then Acrobat would
    automatically duplex all my print jobs until I chose otherwise.  Now,
    duplex is not an option under Advanced....  I was hoping it had just
    been moved elsewhere.

  • Dynamic Documents Printing Problems

    Hi,
    I have developed a report which displays the data using the dynamic documents class cl_dd_document.  I have added shading and colors.  My problem is when I print, using the method PRINT_DOCUMENT, none of the shading/colors show on the printout.  Also, there are no table grid lines being printed.  Is this normal or do I have a problem.
    Another problem is that the column headers only print on the first page.  I expect them to print on each new page.
    Thanks.

    Hi.,
    Back Ground will not be print using cl_dd_document.,  Check  DD_STYLE_TABLE  Program.. this will help u., to print document.,
    also you can see backgrund colors cannot be print...  but you can print text color..
    hope this helps u.,
    Thanks & Regards,
    Kiran

Maybe you are looking for