Print Job function

Can someone guide me in the right direction how to detect en setup the pages for printing long swf files.
I made the print job function and able to print but it only print 1 page ... the swf is always 1200px width en the height varies everytime..
so most of the time it's at least 2 pages long.
But I dont know how to auto add a new page for printing if the swf is too long for 1 page...
Thanks!

WhatToPrint  is the array of movieclips to be printed
and you can set the width and height of the doc to be printed change the highlighted one for your need.
function PrintFunc(WhatToPrint:Array) {
    var PrintQueue:PrintJob = new PrintJob();
    var PrintStart:Boolean = PrintQueue.start();
    if (PrintStart) {
        for (i=0; i<=WhatToPrint.length; i++) {
            PrintQueue.addPage(WhatToPrint[i],{xMin:10, xMax:606, yMin:10, yMax:800});
        PrintQueue.send();

Similar Messages

  • How do I cancel printer job queue? CanonBJC-250 will not function because of long queue. cannot find control.

    Apparently the print order was pressed several times. Now there is a long list of print orders and the printer will not work.

    This is more of a Ubuntu-related question than a Firefox one. When print jobs are queued up, you should get a printer icon in the notification area (beside your clock by default). Clicking on the printer should allow you options to cancel the print jobs. Give it a try -- I can't guarantee if it works as I haven't got any printers installed in my Ubuntu.

  • CS4 : unable to print / stops printer / halts print job on Fuji Xerox c2255

    Morning,
    This discussion posting may or may not have some relevance to my previous posting, CS4 : memory leak errors (?) in Os X console log
    I am working on a clients workstation and they are having a few problems. Specific hardware and software details are at the bottom of this posting.
    THE PROBLEM
    The problem is that I can not seem to print from CS4. The problem seems to be specifically Adobe CS4 related as I will explain below.
    From the end user perspective, the CS4 suite appears to function normally with one exception - CS4 will not print. In the below example, I am referring to mainly Adobe Acrobat CS4 and InDesign CS4 as these are the programs that they use the most. The artist can still work with all the CS4 applications - opening new or existing indesign/acrobat documents, adding text, import, export, create pdfs, saving to same name or new name, etc... but they can't print out to a printer (Fuji Xerox c2255). For example, using InDesign, the artist can open an existing Indesign document and make changes to the Indesign document. She can save the document using the same name or a new name, but when she attempts to print the Indesign document, the document will not printed. If she saves the file as a pdf and using Acrobat to open the pdf and attempts to print the document, it will not print. BUT, if she uses preview to open the document and attempts to print, then it WILL print.
    When attempting to print, the following happens,
    - in acrobat CS4 or Indesign CS4, choose 'Print'
    - choose A4 or A3 format
    - click print
    The job processes and is set to the printer spool as per normal. About a couple of second later, after the processing is done, the Printer Queue starts jumping up and down in the dock. Open up the printer queue, shows the following message 'Printer has stopped'. The job is present in the printer queue list. Restart the Printer, and restart the job, and then about 5 seconds later, the message appears again, 'Printer has stopped'. This continues ad nauseum until the job is manually deleted from the queue. No print outs.
    PRINTER or PRINTER DRIVER
    I have installed and uninstalled the printer driver half a dozen times. I have source the driver from different locations (US, Asia and Australia). In all three cases,the Fuji Xerox printer drivers look identical (I've opened them up in text edit). Every other application, on the Mac, appears to access the printer without any problems -Office 2008 ( Word, Excel), Preview, Text Edit, Text Wrangler, Mail, etc can all address the printer and print to the printer without any problems. Using any of these programmes, I can access all the functionality of the printer (A4 in Tray 1, A3 in Tray 2, Levels of the inks, etc) via the driver. When I installed the generic printer drive, I have no access to any of the Fuji Xerox Printer functionality. This leads me to think that the Fuji Xerox printer driver is not the problem.
    Interestingly, using Apple's Preview, I can print any existing Acrobat documents without any problems - in either A4 or A3. However, if I attempt to print the SAME Acrobat document from Acrobat CS4, it will not print.
    USE 'PRINTER DRIVER' option rather then choosing paper size.
    I read in another posting, in the Adobe forum, of a similar problem with Duplex printing - if the the paper size is manually set (A3/A4) in the 'print document options', printers do not print duplex. The answer seemed to be instead of manually choosing the paper size (A4/A3), allow CS4 to determine the paper size. So, in the 'print document' dialog option, one should choose 'use printer driver' instead of specifying A3 or A4. An explanation suggested that the print engine refers to the printer driver to find out what options are availible and then CS4 chooses what size it wants to send the print job to. Forcing CS4 seems to stop duplex printing from working.
    I will look at this suggestion next week when I return to the site.
    NETWORK PRINTER
    The fuji Xerox c2255 is a network printer. Both Mac Pro and printer have a fixed IPs. I have eliminated the network as a problem, by running a network cable directly from Mac Pro ethernet port to Fuji Xerox ethernet port. I can ping the printer directly from the Mac Pro; I can see the printer from the Mac. I can print directly to the printer from the Mac, using Text edit or any other application EXCEPT CS4. CS4 will not print.
    CLIENT HAS UPDATED ALL DOCUMENT FILES TO CS4 via INX
    I have since been informed that a staff member had (recently) updated all the documents to CS4 via INX. I wonder if this anything to do with the problems ? Unfortunately, I don't have any 'old' documents to test with. I wonder if the conversion process had 'modified' the pdf wrapper in some way ? I have tested this in the following manner - I opened a 'updated' CS4 document in Indesign CS4. If I try to print straight out of CS4, then the above problem occurs (i.e. the document will not print as descibed above). BUT, if I copy all the contents - from the updated CS4 document - and paste the contents directly into a NEWLY created document, then it WILL print.
    UNINSTALL CS4 AND REINSTALL
    Yes, this has been done three times so far with no further improvement. Each time, the steps that I have taken are as follows,
    - repaired disk permissions.
    - fsck in single user mode to confirm directory structure is fine
    - uninstalled CS4 using the uninstaller.
    - manually searched and remove any file, folder, cache that has the word 'adobe' in it from both User account, System Library and Library.
    - used Onyx manual and automatic functions to clear all logs, font caches, spotlight databases, kernal caches, etc, etc
    - ZapRAM Cmmd-Option-P-R (wait for start up chime 3 times)
    - fsck again
    - start Mac in Safe mode
    - reinstalled CS4 from media (see version above)
    - Following reinstallation, restarted mac as per normal.
    - run Disk Utility to repair permissions
    I have tried printing an existing CS4 document file with a freshly installed CS4 suite - directly from the media file (will not print). And I have attempted to print a CS4 document file after applying all updates (will not print) Neither approach improves the situation.
    USE CS3
    This has been considered but as the client(s) have already done the conversion of all their documents to the CS4 format using INX, then they are really committed to working with CS4. What I am attempting to do at this time is to find out WHY CS4 is doing what it is doing, and if there is a fix to this problem. If there is no fix, then I know I should use a different approach.
    I am posting this message in the hope that someone may have already come across this problem or perhaps may be able to spot something that I have overlooked. This problem has really got me stumped - I have had experience with Adobes products since Photoshop 1.0 (1990s / Pre-CS1) but never had a problem as annoying or time consuming as this one - this is a dousy.  I have lodged a case number with Adobe Technical Support.
    Thank you for taking the time to read this longish posting. I would be most grateful for any feedback solutions, or suggestions.
    Have a wonderful weekend.
    Thank you,
    Fred
    Workstation specs are as follows,
    MACINTOSH MODEL (Intel) 8 core - new model Mac Pro; just 1 month old.
    Model Name: Mac Pro
      Model Identifier: MacPro4,1
      Processor Name: Quad-Core Intel Xeon
      Processor Speed: 2.26 GHz
      Number Of Processors: 2
      Total Number Of Cores: 8
      L2 Cache (per core): 256 KB
      L3 Cache (per processor): 8 MB
      Memory: 6 GB
      SMC Version (system): 1.39f5
      SMC Version (processor tray): 1.39f5
      System Version: Mac OS X 10.5.7 (9J61)
    ADOBE CS4 VERSION - Installed from media.  No updates applied (but have already done with with an earlier installation)
    Adobe Acrobat Pro 9.0 v9.0.0, Adobe Bridge CS4 v3.0.0.464, Dreamweaver CS4 v10.0.0.4117, Adobe Flash CS4 v10.0.0.544, Adobe InDesign 6.0.3.557, Adobe Media Encoder CS4 v4.0, Adobe Media Player v.11, Adobe Photoshop CS4 v11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch]), Adobe Updater 6.0.1.1464

    Try resetting the printer subsystem.

  • Printer installed but not responding to print jobs

    I'm not quite sure how to intelligently ask this question so let me describe what happened.
    I have a friend who asked for help in troubleshooting a problem with his printer.  His printer is a brand new HP Officejet 6600 sitting near his computer and is on his wifi network.  He can not print to it wirelessly from his iMac running Lion, but his wife can print wirelessly to it from another room on her iMac.  He can print using USB, though, but he prefers wireless because of the wiring situation in this room.  Plus, he bought for wireless printing.
    When I got there I checked his System Preferences:Print & Fax and confirmed that his printer was installed and had the green idle light showing ready for a print job.  I tried to print and everything looked normal and showed that the job was sent to the printer and was 100% completed but the printer never responded.  I tried it from his wife's computer and confirmed that she was able to print a page with no problem.  I brought my MBP and joined his wifi network and added his printer and was also able to print.
    So, I tried some basic troubleshooting steps trying to print after each one, and nothing worked.  I deleted and re-installed his printer, repaired permissions, restarted in Safe Boot, tried printing in a second user account, Reset printing system..., deleted all com.apple.print... preferences,  installed Onyx and ran the System Cleaning routines,  powered down/up the router/computer/printer, reset the wifi on the printer and rejoined his network, and probably a few other things I can't remember right now.
    After doing all of this and throwing up my hands I tried to print again from my MBP to prove that I still could, and this time was not able to print.  It kept trying to send the job but the printer never responded.  His wife's iMac was still able to print, however.  This got me frustrated and I decided to ask this forum for help.
    Oh, and here's some more information.  His wife has a printer next to her computer, an HP Officejet something (I forget, not 6600, though).  His iMac is able to print over wifi to this printer with no problem.  What the...?
    What other things can I try? Does this point to something in the printer such as a bad wifi card, or something?  Any suggestions or ideas will be much appreciated.
    Thanks

    LilyLC, hold on to your chair you will not believe what happened today.  Bear with me while I give you all the details but you will want to read the entire story.
    First, to answer your question in the first paragraph of that last post, his wife's printer is connected to his wifi and is using the driver installed by Apple and has been updated on the same date as his computer that I gave earlier.  She can print to her printer and so can he.  After the troubleshooting steps I have taken and took today I agree with your assessment about an intermittent issue with the printer, too, but let me tell you what I did today.
    Before going to his house I decided to set up a second wifi LAN at his house using my router to check if his Airport Extreme (I incorrectly thought initially it was an Airport Express) router was the problem.  The thinking being that I have checked his printer and computer and nothing I have tried is making a difference, so the only thing left is his router.  So, I set up my router and joined his computer, printer, and my MBP, to the wifi and tried to print from both computers.  The printer still was NOT working!  That was a big disappointment since I just knew that was going to work.  I guess that eliminates the router.  I reconfigured his computer back to his wifi and proceeded to the next step.
    I hadn't installed the drivers from the website you gave me earlier since I saw in Software Updates that he had updated to that same driver set already.  Now I got to thinking that maybe those files were corrupted somehow so I downloaded the drivers from the website you gave me and installed.  Deleted drivers from Print & Scan pane and installed the newly downloaded driver, tried to print, and that failed, too.
    Next I tried your suggestion of using the LPD protocol instead of the HP JetDirect and that setup failed for some reason.  I reconfigured using the HP JetDirect, and that worked for printing, as before, but the scan function was not available, as before.
    I was getting a little pressed for time today and had time to try one more thing, so I decided to forgo the new Location setup until tomorrow and instead chose to plug his printer directly into the Airport Extreme via USB and see what happened.  I deleted the IP driver and clicked the + to add the installed driver and was presented with an HP Officejet 6600 on the top line and lower down under "Nearby Printers" found an HP Officejet 6600 series [XXXXXX] and under that HP Officejet 6600 Fax.
    I chose the first driver and installed and tried to print and was successful.  However, the scan function was not available.  So I deleted that driver and chose the second one.  I noticed immediately that the scan function was available.  Thinking I might have something I tried to print and was unsuccessful.  Mmm...printing works with the first driver but not the second and scan works for the second but not the first.  What's with THAT? 
    This was really getting frustrating by this time and after much discussion with him I told him I thought the printer was the device at fault.  For some reason his printer just did not like his network.  I tried printing to his wife's computer and that worked great.  No problem there.  But for some reason his printer did not like his network and refused to work by setting up manually.
    I recommended that he bring the printer back and exchange it for another printer.  He agreed and immediately boxed it up and left for the store.  I returned home to more friendlier surroundings.
    Here's where it gets interesting, and it helps to know that my friend is in his mid-eighties.  About an hour later he calls and tells me he's sitting in the parking lot of Office Depot.  He tells me that when he was in the store discussing with Customer Service about an exchange it dawned on him out of the blue that he DIDN'T NEED TWO PRINTERS!!  He said that if he could print to his wife's computer today then he could print to it from now on.  I was speechless!!!  I told him I asked him at the beginning of all this why he had to have two printers, and at that time he said "trust me, we need two printers".  Ok.  He tells me he has no idea why he didn't realize that wifi worked differently than cable.  He thinks that maybe since his older two printers were each connected to his and his wife's computer these newer computers operated the same way too.  But he admits to me that he was the one who set the printers up on his wifi network, so why he didn't realize that only one printer was necessary with wifi he didn't know.  He was embarrassed.  He admitted to me that technology is very difficult for him to understand.  No kidding!!!
    I didn't need to remind him how much time had been spent on this problem because he was quick to apologize and was very sorry for taking up so much of my time, and he really appreciated the effort.  I told him I didn't mind.
    And I really didn't, because I learned so much from this experience by following your suggestions, LilyLC.  I never knew how to set up a printer using its IP address, and the protocols to use, and I never knew how to add new Locations in the Network pane and why it might be useful.  You also got me to considering other troubleshooting ideas I wouldn't have thought of otherwise.  So maybe my friend and I aren't that different after all.
    I really appreciate all the suggestions, links, and ideas you offered during this effort, LilyLC.  I wish I could have determined the cause of the problem but, not knowing the inner workings of these devices, I can only assume that it had to have been the printer.
    I bet I get a call from my friend a week from now saying that he just bought a second printer for his room because his knees can't take the walking from his room to his wife's room to get all of his printouts.  All I can say is THAT printer better work.
    Thanks again, LilyLC, for all your time and help.  It was really appreciated!

  • Initial Print jobs 'communication error with device'. Pause and restart job

    So, I have an odd variant of the Leopard print problem; on 3 separate systems.
    When I print to an HP Photosmart C7180, which setup fine, which I can scan to fine, the print job throws an error :error communicating with device, switch on and off' and so forth. It does that from any app, and consistently. I am printing via bonjour, the printer is networked, but on a static IP.
    To fix this EVERY-TIME I PAUSE printer, then start printer again. It immediately starts working, consistently until I sleep, log out, or don't print for a while.
    This seems to be some timeout issue or such. I tried IP printing, but no difference.
    Resetting the print system also did not help.
    It's not catastrophic but sooo annoying. Any input appreciated!
    Thx,
    Dan

    Hello SunnygirlQ. Welcome to the Apple Discussions!
    Unfortunately, not all USB printers are compatible with AirPort base stations. In addition, the AirPort's USB port does not support the "advanced" printer functions, like scanning, copying or faxing, of multi-function printers.
    To see if your printer is compatible, take a look at this iFelix Unofficial AirPort Printer Compatibility link.
    If your printer isn't listed, it doesn't necessarily mean it won't work, but simply that it has not been verified. iFelix also provides the following workaround for printers not on the list that would certainly be worth a try.
    Also you can try this Apple Tech Support article to see if it will help:
    o Printer troubleshooting for AirPort Extreme and AirPort Express
    I assume that this printer works just fine when it is connected directly to your Mac ... correct? If so, has it worked when connected to the AX in the past ... or has it always had this problem? If it did work correctly before, did you do any updates, especially to the AX, recently?

  • Any way to get more than 100% zoom on print jobs when printing multiple pages?

    I know how to increase the size of a print job, when I am printing one page at a time. But when I go to print 2 pages at once (the multiple page print function), there are always large margins around the page. I'm ok with saving paper and printing up two pages, but it seems silly to see small print and wide blank margins. Is there any way to increase the print zoom, when printing multiple pages per sheet of paper?

    I once overshot the limit by marking too many photos to fit within 99 pages, but I could never figure out how to fool the application and had to give up trying to add those 14 extra photos.
    I asked a friend (who practically lives in Terminal) if he had any way of modifying that limit, but he reminded me that if their printing services are set up to bind books and bill for only 99 pages, fooling the application might be useless if the service only prints me a 99 page book and discards the additional pages.
    I can understand that you wouldn't want to let people print 1000 page books, but I sent feedback anyway to allow me to increase the limit. Anyone know of any service that lets you print beyond iPhoto's limits?

  • Eventing and Print Jobs

    Hey all! I am attempting to write a script that will collect information about print jobs on a print server and write the data to a database. I am trying to get data on print job owner, printer name, whether it was color or grayscale, number of pages and
    number of copies.
     I am running into a problem finding a method to collect events for print jobs. I have attempted to subscribe to creation and modification events of the Win32_PrintJob class, which is ok but doesn't seem very accurate about details like pages printed
    and color/grayscale. I next attempted to respond to these events by using Get-WinEvent each time the event fires and then using the JobId property of the event to scan the PrintService log for matching 307 and 805 events. However, I have found that the Win32_PrintJob
    JobId does not seem to match the document id in the event log entries.
    I scrapped that idea and instead attempted to collect .NET events for the NTEventLog class but this only seems to work with the traditional logs such as system, security and application.
    I suppose I could just scan the event logs on a regular basis and collect print job information that way, but I was really looking to collect and log this info in real time rather than just looping every so often. Has anyone else tried eventing for any of
    these classes? Is it possible there is another .NET class I could subscribe to that would provide me with details of incoming print jobs? Am I going about this entirely the wrong way?
    Thanks!

    Hi Matt,
    Maybe you can try the .NET class for printing:
    Function Get-PrintJobs
    <#
    .SYNOPSIS
    Return the list of jobs on the current printer
    .DESCRIPTION
    This function returns a list of pending jobs on the specified print server for a given queue
    .PARAMETER ComputerName
    Name of the print sever
    .PARAMETER Name
    Name of the print queue
    .EXAMPLE
    Get-PrintJobs -ComputerName ps -Name HPLJ5000
    .LINK
    http://scripts.patton-tech.com/wiki/PowerShell/PrintServerManagement#Get-PrintJobs
    #>
    Param
    $ComputerName,
    $Name
    Begin
    $Host.Runspace.ThreadOptions = "ReuseThread"
    if ((Get-WmiObject -Class Win32_OperatingSystem).OSArchitecture -eq '64-bit')
    $SystemPrinting = Get-ChildItem "$($env:systemroot)\assembly\GAC_64\System.Printing"
    $SystemPrintingFile = Get-ChildItem -Name "*system.printing*" -Recurse -Path $SystemPrinting.FullName
    $SystemPrintingFile = "$($SystemPrinting.FullName)\$($SystemPrintingFile)"
    else
    $SystemPrinting = Get-ChildItem "$($env:systemroot)\assembly\GAC_32\System.Printing"
    $SystemPrintingFile = Get-ChildItem -Name "*system.printing*" -Recurse -Path $SystemPrinting.FullName
    $SystemPrintingFile = "$($SystemPrinting.FullName)\$($SystemPrintingFile)"
    $ErrorActionPreference = "Stop"
    Try
    Add-Type -Path $SystemPrintingFile
    $PrintServer = New-Object System.Printing.PrintServer("\\$($ComputerName)")
    $PrintQueue = $PrintServer.GetPrintQueue($Name)
    $PrintJobs = $PrintQueue.GetPrintJobInfoCollection()
    Catch
    Write-Error $Error[0].Exception
    Break
    Process
    End
    Return $PrintJobs
    Refer to:
    A print management library
    If there is anything else regarding this issue, please feel free to post back.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang

  • How to include the URL in the name of the print job when printing from FF

    We log all print activity in our company and it would be helpful to be able to identify print jobs from Firefox, however as only a web page's <TITLE> content is used as the print job name, I was wondering if there was a way to either use the URL as the print job name, or even prefix the print job name as "Mozilla Firefox" to identify jobs from this application?

    Thank you for your reply but that's the print job content, i.e. page header / footer will have the URL typed into it. I'm after the name of the print job, i.e. as it appears in the print queue. For that I cannot find an option.
    I'm wondering whether a plug-in could do this, replace the normal print function with an identical one that uses the URL as the print job name.

  • JS: How to make a script to print one page at a time and set print job name?

    What I want is to print one page at a time to the printer.
    Document.print(false, app.printerPresets.item(0)) almost get me there. But how do I get it to print page by page? There seems to be no way to set which page to print to printerPreset.
    Also, is it possible to change print job name from the default of using document name?

    >Is there any solution to this other than saving the document to a different name before each page print?
    Here is an altered and abriged version of the script that I use. I use print preset called "PS to PDF" in it, so you should change it to your own.
    if(app.documents.length == 0){
       alert("Please open a document and try again.");
       exit();
    var myFolder = Folder ("~/Desktop");
    var myDoc = app.activeDocument;
    var myNoExtention = getFileNameOnly (myDoc.name);
    var myPrintPrefs = myDoc.printPreferences;
    if (app.printerPresets.item("PS to PDF") == null) {
       alert("Preset \"PS to PDF\" has not been installed");
       exit();
    else {
       myPrintPrefs.activePrinterPreset = app.printerPresets.item("PS to PDF"); 
    myDoc.sections.everyItem().sectionPrefix = "";
    myDoc.sections.everyItem().includeSectionPrefix = false;
       var stop = myDoc.pages.length;
       var w = new Window ( 'window', 'Printing PS-files' );
       var pb = w.add ('progressbar', [12, 12, 300, 24], 0, stop);
       var txt = w.add('statictext');
       txt.bounds = [0, 0, 200, 20];
       txt.alignment = "left";
       w.show()
    for(var myCounter = 0; myCounter < myDoc.pages.length; myCounter++){
       curPage = myCounter + 1;
       pb.value = curPage;
       var myText = String("Page " + curPage + " of " + myDoc.pages.length);
       txt.text = myText;       
       var myPageName = myDoc.pages.item(myCounter).name;
       var cornumber = pagenum(myPageName);
       var myFilePath = myFolder + "/" + myNoExtention + "_" + cornumber + ".ps";
       var myFile = new File(myFilePath);
       myPrintPrefs.pageRange = myPageName;
       myPrintPrefs.printFile = myFile;
       myDoc.print(false);
    w.hide();
    alert("Done!");
    function pagenum(myNumber){
       if (myNumber >= 1 && myNumber <= 9)
       x =  "0" + "0" + myNumber;
       else if (myNumber >= 10 && myNumber <= 99)
       x = "0" + myNumber;
       else if (myNumber >= 100 && myNumber <= 999)
       x = myNumber;
    return x
    function getFileNameOnly (myFileName) {
       var myString = "";
       var myResult = myFileName.lastIndexOf(".");
       if (myResult == -1) {
          myString = myFileName;
       else {
          myString = myFileName.substr(0, myResult);
       return myString;
    Kasyan

  • C# console app - print job vanishes in Windows 8 regardless of print driver used; works in Windows 7

    I have the following which sends a print file to a specific printer. It works perfectly in Windows 7, but not in Windows 8. The print job shows in the print queue until the print job is closed. Then the print job literally vanishes from the print
    queue. This issue occurs with all print drivers, including generic text only. Conversely, I can still use the "winspool.drv" DLL directly under Windows 8 and it works. Please advise. Thank you.
    Here is my code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.IO;
    using System.Printing;
    namespace PrinterLib
        public static class PrintToSpooler
            public static string SendFileToPrinter(string szPrinterName, string szFileName, string docName)
                try
                    // Create the printer server and print queue objects
                    //PrintQueue defaultPrintQueue = LocalPrintServer.GetDefaultPrintQueue();
                    //PrintQueue mypq = new PrintServer().GetPrintQueue(szPrinterName);
                    //using (var printq = defaultPrintQueue)
                    using (var printq = new PrintServer().GetPrintQueue(szPrinterName))
                        using (PrintSystemJobInfo job = printq.AddJob(docName))
                            using (var memoryStream = new MemoryStream())
                                FileStream fs = new FileStream(szFileName, FileMode.Open, FileAccess.Read, FileShare.None);
                                fs.CopyTo(memoryStream);
                                fs.Close();
                                Byte[] myByteBuffer = memoryStream.ToArray();
                                // Write a Byte buffer to the JobStream and close the stream
                                job.JobStream.Write(myByteBuffer, 0, myByteBuffer.Length);
                                job.JobStream.Flush();
                        printq.Commit();
                    return null;
                catch (Exception ex)
                    return ex.Message;

    Hello folks,
    I have been facing the same problem until right now. All above suggested methods failed (as it did for Jeff0123) . But after long research on that issue I think I found the reason (but no proper solution yet).
    MS Windows 8 and 2012 use a new printer driver generation based on XPS. Which means drivers like "generic text-only" won't work properly depending on the method the data is sent to the printer. In my case the
    same way like Jeff0123 tried to access the printers.
    See link http://support.microsoft.com/kb/2779300
    One solution might be to use API calls. I have also found a site which shows an example project for thermal slip printing. The VB.NET source code there features a wrapper class for all API calls. The functions you find behave pretty similar to the ones of
    the posted C# code example of Jeff0123. I did a small test so far and for my needs that works fine.
    Although the page is in German you can find the mentioned class by searching for "Public
    Class RawPrinter". Beside the comments the class methods are written in English. You find the class here: http://www.vbarchiv.net/tipps/tipp_2375-kassenbon-drucker-mit-vbnet-oder-c-per-esc-pos-befehle-ansprechen.html
    Hope that might help for at least a few of you. So long!

  • Why does my Laserjet 2055dn only print the first page of a print job?

    In our domain, we have a number of 2055dn printers that act up on intermittent bases.  At times, they function properly, but other times they will only print the first page of a print job.  Our domain has only HP printers so there should be no conflict with drivers.  My solution has been to delete the printer on the local machine and then to reinstall them after reboot.  That has helped at times.  In other cases, I have installed the printer only on the local machine and not the copy on my printer server.
    I have updated the print drivers, on the server and on the local machines.  I have changed drivers to PS, to PCL 5 and to PCL 6.
    This only seems to occur in one of my three buildings that house this model of printer.  I have even done firmware upgrades on the printers.
    I appreciate any help that I can get on this continuing problem.  Thanks much.

    Then use the latest solution!
    Which doesn't need specifying either.
    Peter

  • Pictures are not shown when saving to PDF.  Cannot Preview Print Job.

    Help! Pictures are not shown when saving to PDF.  Cannot Preview Print Job.

    I guess you need to fix it
    Or if you would like some help provide some information - there are no mind reader supporting this forum and we can only work with the information you give us - right not that is "it does not work"
    iPhoto has no "save to PDF" function - exactly what are you doing? and what exactly do you want to do?
    LN

  • Print job from Windows hangs in iMac print queue - help please!!!

    I have a new iMac core duo and am trying to print to my Epson Stylus CX4600 from Windows. Bonjour sees the printer and sets it up, the print job seems to go just fine, but when I check my G5 (the Epson is connected to the G5) I see the job stopped. If I try to start the job, nothing happens... the only way to clear the Q is to delete the job.
    I have all the latest drivers, and have tried bonjour both with generic postscript and with the Epson driver - no luck.
    Any advice would be greatly appreciated....

    Embedded Chat turns Web Visitors into Clients
    Turn up to 90% of your web visitors into Clients!
    Our Embedded Chat does just that.
    http://www.chatresponse.com/
    http://www.chatresponse.com/
    http://www.chatresponse.com/
    Not just live chat, Embedded Chat!
    This Phenomenon Will Skyrocket Your Sales!
    If you are not using Embedded Chat on your site, you are losing valuable
    clients. That is just a fact. There is an unimaginable difference what
    Embedded chat does for converting browsing web surfers into leads and
    clients.
    We get your visitors contact information or it's FREE
    We're so confident that it works, we give you a 15-day, fully-functioning,
    free trial. Go ahead, try it out.
    Our staff is goal oriented and dedicated to getting the contact information
    of people that are interested in your products or services.
    With our Embedded chat your customers do not even have to click a button to
    chat, they are already in a chat when they enter the site, If they ignore
    the chat window we have the power to invite them to chat with a floating
    invitation. Why would you want to do that Direct contact with the customer
    means customer confidence, conversion rates and sales skyrocket.
    Imagine this:
    Let's say that your customer contacts you for a live chat through our
    Embedded Chat. They'd like to buy a pack of 40 burritos, but they only see
    packages of 15. Not only can you push them to the page showing a pack of 50
    burritos, you can offer them a discount and assist them through the purchase
    process all through Embedded Chat. The customer is happy, they commend you
    for the great customer service, and you've got more money in your pocket.
    Embedded Chat helps organizations to increase online Sales Revenue and
    provide better Customer Service - all in Real Time - and literally with a
    mouse click
    Embedded Chat provides instant benefits and maximum returns to its clients.
    Embedded Chat Significantly increases new customer acquisitions and online
    conversions.
    Embedded Chat Generates qualified leads from your online marketing and
    print campaigns.
    Embedded Chat Decreases shopping cart abandonment rates and customer churn.
    Embedded Chat Increase sales, reduce support costs, and attain rapid ROI.
    Embedded Chat Services more prospects and customers, more efficiently.
    Embedded Chat Maximizes customer satisfaction, loyalty and profit.
    Imagine if your customers can get answers and live help to their questions
    from you right into right now. No matter how informative your website is,
    people will have more questions about your services or product. Our live
    chat software will increase trust by making your website come alive.
    * Instead of leaving visitors to navigate your site by themselves, you
    would be in control. You would be able to engage your customers and
    proactively guide them right toward a sale.
    * No longer will you worry about losing a potential customer because a
    simple question wasn't answered.
    * You will increase your visitors' confidence by showing there is a real
    live person behind your site.
    Increase your sales: Chatters are 3 times more likely to buy from the
    site
    Site visitors that are provided the option to chat with a sales expert are
    25-200% more likely to make purchases from your website. Online shoppers are
    still wary to trust a website's catalogue technology and purchasing
    procedure, and sometimes even the most web savvy shoppers need help. With
    Embedded Chat, your business can offer your customers the information and
    online confidence they seek. Agents can use the opportunity to develop
    relationships with customers and suggest items to upsell.
    Improve your customer service: Chatters are twice as likely to return to the
    site.
    90% of customers prefer live human interaction for online assistance, but
    80-90% of the same customers would rather not use the phone. Using Embedded
    Chat, customers avoid the hassles of navigating phone systems or waiting on
    hold for up to an hour to speak with a phone agent. Many will simply give up
    and find your products elsewhere if they can't get help instantly. This is
    especially true among dial-up internet users.
    Increase your online revenue
    Chatters are 3 times more likely to buy from your site having spoken with
    your sales staff
    Increase staff performance
    Each chats is automatically saved online so you can access them at the end
    of every day to see how your staff performed. This will give you a better
    idea of what your customers requests are and how your staff are handling
    them.
    Reduce your staff costs
    One operator can easily handle multiple customers at the same time.
    Resolving customer support issues with Embedded Chat is up to 90% less
    expensive than a phone call or an email. By incorporating the live chat
    button into the emails your staff send to customers you also make it easier
    for customers to respond quickly.
    Increase your customer satisfaction and loyalty
    Your customers experience shorter waiting time and get immediate answers to
    their questions.
    24-7 Chat Answering
    Embedded Chat has a 24 hour call centre that can answer your visitors chats
    for you after hours and on weekends, passing you on leads so even when your
    staff have left for office we are still gathering leads to pass onto you the
    next business day.
    Hosted and Client Hosted
    Embedded Chat has both a hosted version (stored on our servers) and a client
    hosted (stored on your servers) program allowing you more flexibility.
    Report Download
    At the end of each day our team can send you a file with all the chats that
    took place that day. This can be printed off for you to browse no the way
    home. This allows an excellent insight into what your staff are saying to
    customers and what your customers are looking for.
    Prechat Survey
    Embedded Chat allows you to set-up a series of questions for your visitors
    to answer once theyve clicked the chat button. This will help you to build a
    profile of your website visitors before you begin chatting. You can also use
    this to follow up with our website visitors.
    Customised buttons
    Our team can provide you with well-designed buttons to attract your visitors
    attention. We can also customise the chat interface to ensure that it blends
    with your website.
    Canned Responses
    You can save standard responses to questions to answer typical customer
    queries. This saves time and enables you to word your responses well.
    Chat logs
    All chats are automatically saved on a secure database which you can view 24
    hrs 7 days a week.
    Reporting
    With Embedded Chat you can use chat logs to run reports on various criteria
    such as operator reports, reports by date, reports by keyword(s), reports by
    prechat survey criteria
    Postchat Survey
    Your sales staff can rank conversations based on the quality or subject of
    conversation.
    Chat Alert
    Your staff are alerted every time a customer enters a chat through a beeping
    sound on their pc.
    Multiple Chats
    Your staff can have chats with multiple visitors at the same time.
    Chat Transfers
    Your staff can pass a visitor to another staff member to handle their query.
    Operator Interchat
    Your staff can contact each other instantly with any queries they may have.
    Multiple Operators
    You can have multiple staff online using Embedded Chat
    Push Page
    Quite often you will have a web visitor who cant navigate to a particular
    page on your website. Using Embedded Chat you can push the page to them so
    all they have to do is to click the link and they are there. Quite a number
    of our clients use this to encourage their web visitors to register for a
    particular product.
    Hosted Software
    The chat interface can be loaded onto our server so that you don't have to
    do anything more than place the live chat button on your web pages. In fact,
    we can also do this for you if you don't have time. We also have a non
    hosted version which can be hosted by you on your servers.
    Offline Email Form
    Allow your visitors to leave a message if you are not signed in as an
    operator. This message will be forwarded directly to your e-mail box.
    Alternatively we also have the option of answering the chats for you after
    hours too.
    Customisable interface
    This feature brings a little flare as it allows you o customise the look and
    feel of your interface in seconds changing the colour of the interface, the
    graphics and the fonts in the conversation with customizable colours, font
    types, and sizes. Available for operator and visitor fonts.
    Browser Compatibility
    Embedded Chat is compatible with all browsers ensuring that you don't have
    any frustrated chatter trying to get through.
    Visitor history
    Click the name of the visitor and see the past chats they had with your
    company.
    Typing indicator
    A 'operator is typing' message indicator will appear which allows the other
    party to know when you are typing.
    Return Visitor Recognition
    When customers connect with a chat, their network IP addresses are recorded.
    When customers return, their presence is detected and prior chat histories
    can be instantly accessed.
    Chat Invite
    You can now invite your web browsers into a chat in real manually or
    automatically. This boosts interaction between your company and your website
    visitors.
    Visitor Monitoring
    You can now monitor your website visitors in real time, see what web page
    they are on, what search engine they came from and what keywords they used.

  • Print job becomes massive with Flash Player 10.1 & 10.2?

    First off, some info.  This is rather old code, written in 2007/2008 with Flex 2 by someone no longer with the company.  It has worked just fine for years, but not anymore.  The application aggregates pricing data over several years, and shows it in a series of 5 or so charts depending on user options.  There is a print button which takes the charts, puts them into a print template, and prints the charts (using the FlexPrintJob function) - or at least that's what it should do.
    Here's the lowdown:
    Flash Player 10.0.x and lower (down to FP 9.x), it works beautifully.
    Flash Player 10.1.x with hardware acceleration off, it works beautifully.
    Flash Player 10.1.x with hardware acceleration on, it breaks.
    Flash Player 10.2.x under any condition, it breaks.
    Now, what I mean by 'breaks' is this: when printing, it spools a 600MB+ file to the printer, gets to ~500MB (roughly the print spool limit), and prints the template with the first chart complete and the rest of the charts missing anywhere from 1/2 to all of the chart area.  If a smaller dataset is used, the charts may or may not complete, but the print job is still massive - the lowest I've seen is 350MB.  In scenarios where it works beautifully, the print job is 12MB at most.
    This slice of the application is part of an application bundle we sell as a service to clients, and forcing a FP downgrade on them is not an option.
    Has anyone run into this issue, or know where I might start to fix it?  In leui of that, any suggestions for porting a Flex 2 application to a FB4 application?
    Thanks for your time, and any help.

    The only printing example I could find in the Flex 2 docs is the very simple one here - Flex 2 Developer's Guide > Flex Programming Topics > Printing > Using the FlexPrintJob class > Example: A simple print job
    Surprisingly, even with a basic print job, the issue appears - in FP 10.2, the print job is ~13MB, in FP 10.0, the print job is ~2.3MB.
    For reference, the code used for the example (from Adobe's docs) is as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
        <mx:Script>
            <![CDATA[
                import mx.printing.*;
                // Create a PrintJob instance.
                private function doPrint():void {
                    var printJob:FlexPrintJob = new FlexPrintJob();
                    // Start the print job.
                    if (printJob.start() != true) return;
                    // Add the object to print. Do not scale it.
                    printJob.addObject(myDataGrid, FlexPrintJobScaleType.NONE);
                    // Send the job to the printer.
                    printJob.send();
            ]]>
        </mx:Script>
        <mx:VBox id="myVBox">
            <mx:DataGrid id="myDataGrid" width="300">
                <mx:dataProvider>
                    <mx:Object Product="Flash" Code="1000"/>
                    <mx:Object Product="Flex" Code="2000"/>
                    <mx:Object Product="ColdFusion" Code="3000"/>
                    <mx:Object Product="JRun" Code="4000"/>
                </mx:dataProvider>
            </mx:DataGrid>
            <mx:Button id="myButton" label="Print" click="doPrint();"/>
        </mx:VBox>
    </mx:Application>

  • How to get laserjet to pause between print jobs

    I just reinstalled my OS (Win7) over the weekend, and the laserjet P1102w is working fine, but it is doing one thing differently than before. For as long as I can remember (even going back to an earlier laserjet 1018), I could send 2-3 print jobs to the printer. When the first was done,  the printer would pause for a few seconds, and only then, start pushing out the pages of the second print job (I'd use that pause to alert me to go to the printer and scoop up all the pages of that first job).
    Now, it isn't doing that.
    Is there a setting to check? Honestly I'm not sure what to look for, but I didn't see anything in Windows' printer preferences.

    Hi paulri,
    Sorry that I had misread your post. The pausing between print jobs, was most likely a function of a communication lag between the printer and the computer, and not a feature of the printer or the software. This option is not available with the Operating Systems print spooler.
    As a workaround, I would just print one document at a time, and wait for it to finish printing, before printing the next document.
    For future reference, just in case you may need it, here is your printer's user guide.
    Thank you for posting, and have a nice day!
    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!

Maybe you are looking for

  • About the Beatles Songs on iTunes Music Store..

    Was wondering, and perhaps the old codgers here who like me, actually have the original vinyl (boy, did I just date myself!) and prefer those.. umm.. was wondering about the releases currently offered - what versions? Are they the remasters, or the o

  • MacBookPro interface to Dell projector

    I have attempted to present from my MacBookPro through a new Dell projector (M409WX). The projector does not detect a signal from the laptop inspite of making good electrical connection through an Apple adapter to the VGA connector. Dell support was

  • Is it possible - two hard drives in w510

    Hello, on Lenovo specification page about w510 ( http://www.pc.ibm.com/europe/thinkpad/why/ru/wseries/thinkpad_wseries.html?ru&ru&cc=ru ) I`ve found "Жесткий диск До 2x320 ГБ RAID 0" (in English - "Hard Drive Up to 2x320 GB RAID 0") is it means that

  • Trying to download Photoshop Elements 11 trial

    I click the yellow "Download Now" button and it sends me to Download Assistant which I already have.  After that...Nothing!  It doesn't give me the option to download the trial.

  • Windows xp sp3 very slow

    Synchronizing my iphone4 with outlook has become impossible with itunes, slow to not working! HELP, thank you!