Problem with printing the code

Hi ,
I m having problems in printing my source code . I use emacs as a text editor. Is there any settings that need to be made before printing . Because when i try to print it didn't print my whole code. And when i try to print it from some where else it gives me error saying printer not found on LPT1. Is it something about the port or what. Plz tell me about it ASAP , because i need to submit my project.
Bye
Waiting for reply

Hello gotchya11,
If you are using a Unix environment, you can use the "lp" print command to send a document to printer. The "-d <device name>" flag is where you specify which printer to sent the document to. You can do a
"man lp"
from the command line to get more info on how to print. Perhaps you need to specify the destination where the file is to be printed. What you can do if you need to print the doc is to just copy and paste your code into a text editor and print from some other program if you are running Solaris CDE or Windows.
Hope this helps,
Ming
Developer Technical Support
http://www.sun.com/developers/support

Similar Messages

  • Problems with printing the text in JTextPane

    Hello
    I need to print the text in a text pane. It prints the first page of the text pane and it doesn't print the rest of the text. I don't know what the problem is.
    The code I am using, is below. I
    Thank you.
    LilyLay
    import java.awt.*;
    import javax.swing.*;
    import java.awt.print.*;
    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() {
    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);
    public static void disableDoubleBuffering(Component c) {
    RepaintManager currentManager = RepaintManager.currentManager(c);
    currentManager.setDoubleBufferingEnabled(false);
    public static void enableDoubleBuffering(Component c) {
    RepaintManager currentManager = RepaintManager.currentManager(c);
    currentManager.setDoubleBufferingEnabled(true);

    public int print(Graphics g, PageFormat pageFormat, int pageIndex) {
    if (pageIndex > 0) {
    return(NO_SUCH_PAGE);
    } else {if (pageIndex > 0) return (NO_SUCH_PAGE)
    prevents printing any more than the first page.
    change >0 to >= numPages
    Howard Amos

  • Problem with Printing the Billing date...

    Hi Experts...
    Here im facing the problem in printing the billing date.
    The scenario is as follows.
    The posting date of Billing is 10.10.2008
      The document date of Billing is also 10.10.2008.
    At the time of printing the Billing document it is taking another date otherthan 10.10.2008,where it should be 10.10.2008.
    What modifications should i do to rectify the problem.
    Please advice.
    Regards,
    Y P.

    Prasad,
    Ask your ABAPer do debug and find out what date (Table-Field) is used in the Invoice Output program. You will know the reason and if you think that the date being used is incorrect, you can ask your ABAPer to change it to VBRK-FKDAT which is the billing date.
    Chandan

  • Problem with printing the sub totals

    Hi,
    I am having a problem with smart forms in printing the line items of invoice.
    I need to print the sub total of each page and need to display the sub total in the footer, with the caption 'Balance C f/w'. It works fine in some cases.
    In some cases, the sub total is getting printed wrongly, because its adding the amount of the next page's first line item also. I checked the form page by printing SFSY-PAGE along with the line item's text. It's observed that, the vlaue of SFSY-PAGE for the first line item's  displayed in the second page is '1'. Due to this, the amount for this line item also is getting calculated with the sub total of the previous page.
    Could you please suggest a solution for this problem?
    Thanks & Regards,
    John

    Hi,
    In smartforms, in the general attributes of the FIRST page the Mode for the page counter should be 'Initialize counter' and for the NEXT page it should be 'Increase counter'.
    Please check this in your smartform.
    Regards,
    Ram

  • Problem with printing the correct "ical" pages.

    G'day
    I have only recently started using "iCal", on the cloud, having upgraded my laptops to "Lion" and my iPhone to "5", so that I have NOT experienced any of the "syncing" problems of which I have read elsewhere.
    BUT, I do have an irritating problem, the solution to which, being a long-term Mac user, should be obvious.
    The problem stems fronm the fact that I am located on the east coast of Australia, and my laptops know this.
    The first, really daft, thing that I did was to create a whole lot of iCal entries, in iCloud, without noticing that the default timezone was "Pacific".
    So, OK, I fixed that by going into my ID on iCloud and changing the timezone, and then editing every single event that I had entered at that point in time.
    So, I then thought that I had beaten the beast, because I had only been printing "Weekly" calendars, which were OK.
    Today, I decided to print some "daily" calendars, and the system WILL NOT PRINT THE CORRECT DATE.
    My iCal entries are mainly to do with a trip that that starts on 1st August this year. I bring up iCal on the Mac, go to the print page, select 01 Aug 2012, and it prints 31 July 2012.
    This happens whether I tick the "Timezone" preference in iCal on the Mac, or not.
    What else should I do?
    Dave the Desperate

    Hi Srikanth,
    In the second page you can insert a command to set it to goto page 3,and an additional event in the command (only after the end of main window).
    As soon as the main window ends in the second page...u will get the third and rest of the pages.
    Keep the goto next page in PAge 1 as Page2
    and in Page 2 as Page 2.

  • Problem with printing the structure in ECC 6,0

    Hi Everybody,
    I'm working in upgrade project.
    in 4.7 version, directly trying to print the work area and assign to some other fields.
    Eg: write: Mara.
    text = mara.
    but in 6.0, its not allowing to assign directly like this.
    \[removed by moderator\]
    Thanks in advance.
    Regards,
    JaganMohan.
    Edited by: Jan Stallkamp on Jul 29, 2008 6:54 PM

    Now, you have to write the individual fields inside the mara stucture.
    Regards,
    ravi

  • Problem with printing the smrtform

    Hi experts,
        I want to print material number through smartform. i have a internal table containing material number and its quantity. I want to print particular material number for number of  quantity times. it means if i have 3 rows in internal table ,  that means 3 material numbers are there and  number of quantity is 50 for each material . so i want to print each material number for 50 times.

    Hi Rupesh,
    You can try following code.
    Lets take an example of just one material number in your internal table.
    what you can do here is  create two similar tables with quantity &  material number.
    Loop at itab.
    here capture the quantity field.
    do < quantity  times >
    append the material numbers to the second internal table.
    enddo.
    endloop.
    This way you can build an internal table with material numbers for total number of quantities.
    Then use this table in your smartform.
    Hope this helps.

  • Problem with printing the pages due to main window

    hi experts ,
       in my requirement i have 4 pages in smart form.It takes quotation number as input and dispaly all the contracts.
    1 potrait
    2 potrait
    3 landscape
    4 landscape
    i have used a main window in the second page contains 2 windows for printing address then
    one main window for printing contracts, and systems info in two tables .
    i have used a main window in the 4 th page too for printing some item details equipment list.
    both main windows having same width.
    i am getting  1 st & 2nd pages only as o/p if i mention 2nd page in the next page field of first page .
    i am getting 1 st  3 rd , 4th , 5th ........pages if i mention 3 rd page in the next page fileld of first page .
    i didn't use any extra page to populate if  2nd page is filled completely    .
    please guide me  .
    Thanks & regards.
    Srikanth

    Hi Srikanth,
    In the second page you can insert a command to set it to goto page 3,and an additional event in the command (only after the end of main window).
    As soon as the main window ends in the second page...u will get the third and rest of the pages.
    Keep the goto next page in PAge 1 as Page2
    and in Page 2 as Page 2.

  • Problem  in Printing the ALV list

    Hi,
       I have one problem with printing the ALV list. While printing the ALV list(thro Print Icon on application Tool bar) ,Fist page of my print out contains some other inforamtion.
      inforamtions included two tables
      first table  contains Sort Criteria, Ascdg, Descnd, Subtotal  columns.
      And second table contains Data statistics , number of
    columns.
    But from Second page onwards , my alv list printed correctly .
      How can i avoid the First page inforamtion and
          what is the Reason of coming like this?
    Thanks,
    Neptune.M

    I assume you are using function module Reuse_alv_grid_display or reuse_alv_list_display for ALV.
    If this is the case, there is a parameter called IS_PRINT that you need to supply while calling the function module.
    you can for exapmle declare
    data:
    printstruc type SLIS_PRINT_ALV.
    printstruc-NO_PRINT_LISTINFOS = 'X'.
    call function 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
    IS_PRINT = printstruc
    There are many other flags in is_print structures that you can use to manipulate the printing.
    Cheers!

  • I can not do the update , what should I do to fix this error ? "There was a problem with downloading the file . For tips on troubleshooting , please go to Customer Support . ( Error code : 204 ) ." thanks

    I can not do the update , what should I do to fix this error ?
    "There was a problem with downloading the file . For tips on troubleshooting , please go to Customer Support . ( Error code : 204 ) ." thanks

    Hi,
    Please refer to the help document below:
    Error downloading, installing, or updating Creative Cloud applications
    Regards,
    Sheena

  • Problem with printing a PDF

    Hi All,
    I'm developing a web application written in J2EE that uses Java Reporting Component (JRC) to display crystal reports from some filters recovered from a jsp and passed to a report .rpt previously designed and invoked just at runtime.
    I have a problem with printing a PDF:
    I want, after entering the filters in a jsp, to print a report in PDF format (WORD) without opening it
    with Adobe Reader (Microsoft Word). The class of API JRC used for export is ReportExportControl.
    Can anyone help me?
    I wish a great day to You all.

    Hi Ted Ueda,
    sorry for the delay of my answer.
    I understand very well the problems related to security.
    With the following code that I used to produce a report (PDF) at runtime,
    is the PDF created on the server and then sent to the client, or is it directly created on the client as PDF
    from RTF previously realized?
    ReportExportControl exportControl = new ReportExportControl();
    String report = report path;
    ReportClientDocument reportClientDoc = new ReportClientDocument();
    reportClientDoc.open(report, OpenReportOptions._openAsReadOnly);
    Object reportSource = null;
    reportSource = reportClientDoc.getReportSource();
    //The method setConnectionProperties() stores all the connection parameters in the collection
    //ConnectioInfos
    ConnectionInfos connInfos = setConnectionProperties(request, reportClientDoc);
    exportControl.setEnableLogonPrompt(false);
    exportControl.setEnableParameterPrompt(false);
    exportControl.setReportSource(reportSource);
    exportControl.setDatabaseLogonInfos(connInfos);
    //Single method to pass parameters to Crystal Reports. Using classes ParameterFieldController and
    //ParameterFieldDiscreteValue
    setReportParametersValue(reportClientDoc, reportParameters, subReportParameters);
    ExportOptions exportOptions = new ExportOptions();
    //Set the export format (PDF)
    exportOptions.setExportFormatType(ReportExportFormat.PDF);
    PDFExportFormatOptions PDFExpOpts = new PDFExportFormatOptions();
    exportOptions.setFormatOptions(PDFExpOpts);
    exportControl.setExportOptions(exportOptions);
    exportControl.setExportAsAttachment(true);
    try {
          exportControl.getHtmlContent(request, response, getServletConfig().getServletContext());
    } catch (ReportSDKExceptionBase e) {
    throw new ApplicationException("error code", ": error message"); }               
    As, however, I predicted in my previous message about the direct printing on the client,
    I read about ActiveX, but I don't know how to use them.
    I read this information in the 'Crystal Reports for Eclipse Developer Guide' about "printMode" attribute:
    "In ActiveX print mode, an ActiveX control is downloaded to the client machine and the report is send directly to the printer...."
    The ActiveX alternative is a java applet that runs on the client and takes the pdf from the server and prints directly onto the clients through the commands that I used in the DOS command line:
    1)     AcroRd32.exe /p /h FILENAME
    where
    /p = print
    /h = hide window
    to print the report and
    2)     tkill AcroRd32
    to close Adobe Reader, because it doesn't end automatically after printing and the command  /h  is used just to minimize the process.
    I hope you can give me advice because I need to print directly on the client. Thank you

  • HP Officejet Pro 8600 "Problem with Printer or Ink System'

    A gander at this forum suggests I am one ofa multitude of people perplexed by this issue. There is a notation beside one enquiry which says 'Problem Solved'.... well it isn't for me. My printer (typical!) is one month out of warranty. I had to replace the black cartridge and, when I did, it came up with this error prompt. I then replaced all the other cartridges. HP suggests removing the printhead and following that they say place it 'upside down on a clean sheet of paper'... NO instructions for cleaning it!! When it is replaced in the printer they suggest you 'rock the printhead left and right to make sure that the printhead fully seats in the carriage' and if THIS doesn't fix things 'try reseating the printhead up to 3 times'... This in itself is an admission of an 'issue' with this product. It doesn't sound like a very scientific engineering 'fix' to me!
    A new printhead costs almost what we paid for the printer a year ago. I hate consigning anything to landfill that I can avoid... unfortunately it looks like that is where this unit belongs...

    Hi @Robin_Perth,
    Welcome to the HP Forums!
    I am sorry to hear about you getting the problem with printer or ink system error, with your HP Officejet 8600, but I am happy to look into this for you!
    I am assuming you have already been through this guide, A 'Problem with Ink System' Error Message Displays on the Control Panel or Computer During Setup.
    If this guide does not resolve the issue, please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region. Country-language selector.
    This guide, Limited Warranty for HP Ink Cartridges and Customer-Replaceable Printheads for HP Inkjet Supplies, will help you to determine if your printhead is still in warranty or not.
    Hope this helps!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • HP 4622 All in One Printer: Problem with Printer or Ink System

    Problem with Printer or Ink System Error OXC19a0027.

    charleshia wrote:
    Thanks so much for replying to my post. I tried the fist suggestions and they did not work. So, I attempted to move on Dow to the cleaning of my printer. I am the the first to admit that I'm not the genius when it come to electronics buys, my printer do not seem to have what is described in the photos. I'd like to upload a photo of my ink cartage but do not know how.
    Charleshia, you can upload a photo here to reply. Click Reply, then on the window you'll see the image below..
    click the one which has the red box, it's where you insert the photo
    Going back on your issue.. the basic step would be.. take out the inks then close the door... what error message you  got? If it's saying "Missing Ink Cartridge" just hit OK. Unplug the power cable at back of the printer, plug it back in.. Clean the copper contacts on the ink cartridges using a lint free cloth then reinstall them. Let me know if it resolved it or not.. I can only give basic troubleshooting here

  • Problem with printing pdf file

    hello,
    lately i have problem with printing pdf file:
    i click on the print button and the respod is very slow
    it takes more than a minute till the print window apears.
    i tryied to install version X but it's the same, the problem exist only when printing via adobe reader,
    other programs i'd working much faster.
    please advice,
    thank you

    No, it is not set to overprint. Also, I have to add that the printing results were not consistent. Sometimes it covered and sometimes it did not.

  • Problems with printer and network connectivity

    So I've been using an HP B110a photosmart wireless e-all-in-one printer that I got with my macbook pro and at the start, everything worked perfectly in terms of wireless printing, ePrint, and AirPrint. But recently, when I try to print wirelessly, it says the printer is not connected and I also can't find it on the list of nearby printers on the 'add printer' window. I also had problems with printing via ePrint but those have cleared up (I don't know what was wrong but it's fine now). Printing with AirPrint on my iPod touch has stopped working as well because the printer doesn't show up when I search for nearby printers.
    Here's what I've checked/tried so far:
    All the wireless services are enabled on my printer and my mac
    I've reset the printing system on my mac, printer settings to factory defaults
    Restarted mac/printer/iPod
    Restarted router
    Reinstalled HP printing software that came with the printer
    All software is up to date
    Wireless printing on another windows computer does work
    Setting up wireless printing using the HP install disc doesn't work
    Trying to add a new printer using the HP software disc that came with the printer is unsuccessful in locating the printer as well.
    Printing over USB is problem-free
    When I tried restarting the printer/router, I could see the printer for just a few minutes in the 'add printer' list but then it would disappear from the list and the printer would be 'not connected' so I can't print wirelessly.
    More info
    MacBook Pro (13 inch, early 2011)
    Mac OS X Lion (10.7.2)
    HP Photosmart e-All-in-One B110a
    Router is a Huawei HG556a that I got from Vodafone NZ
    Thanks in advance!

    http://support.apple.com/kb/DL907

Maybe you are looking for

  • How do I share Safari bookmarks with another Apple ID  in iOS 8?

    My husband and I share the same Safari bookmarks, calendar, contacts, reminders, notes.  We've always been able to share tall of them across his devices by adding my Apple ID account to my spouse's devices in the Mail, Contacts, Calendars under setti

  • Good tutorial  for  Form Guides in ES2.

    Hi , Today  I started digging into what is Form Guide and what is the use   and how to develop and render the form guide. Where we  need to  the Form Guide ?. Could any one please  share the link or  materail of good tutorial of Form Guide of ES2 ?.

  • Barcode size problem in different adobe reader versions

    Hi, In one of my requirements of Adobe form, I am displaying barcode for a value. The problem is of size of barcode which varies on different machines based on Adobe Reader version. On one machine 'Adobe Reader' version 9.4.0 is installed and on othe

  • Saving images from web on itouch?

    My itouch stopped saving images from Safari?

  • PC won't boot after BIOS flash

    Hi A few months back I flashed my BIOS to v2.5. Ever scince, the PC has not been as stable, so when upgrading my gfx card, and pc would crash all the time, I decided to revert back to v2.4. When I re-flashed to v2.4, it flashed OK, but when I reboote