Get the printer Graphics context before printing

My applikation can print multiple pages where each page may look different. So I decided to implement the Pageable interface. When I create the object which implements the Pageable interface I must create the pages (which implement the Printable interface) of my print job. The number of pages depends of the size of some text paragraphs.
My problem is that I must know the Graphics context object which will be used for printing when I create the pages of my print job because I must use the Graphics context to measure text. But I can not see a possibility to get the Graphics context before the actual printing starts with printJob.print(...).
Has anyone an idea how I can solve the problem?

Hi,
if its a Smartform we can find the device in structure ssfcompop-tddest. Usually we define one structure with same type and pass the value to Smartform Function Module in driver program...
If its a 'SAP SCRIPT' u can find the device in structure 'ITCPO-tddest', we pass this value to 'OPEN_FORM' Function Module in driver program.
Hope it helps!!
Regards,
Pavan

Similar Messages

  • Anyone else have a problem printing from an iMac OS-X 10.9.3 to a wireless Epson Artisan printer? Sometimes it prints but must often I get "The printer is not connected" and I have to retry printing 8, 10 or 12 times before it will print?

    Anyone else have a problem printing from an iMac OS-X 10.9.3 to a wireless Epson 835 Artisan printer? Sometimes it prints but must often I get "The printer is not connected" and I have to retry printing 8, 10 or 12 times before it will print? I have followed all the instructions from Epson about upgrading, etc. but it is very frustrating when I have to repeatedly try to print. Epson says talk to Apple???

    Try checking thru these, maybe some help.
    Mac OS X: How to reset the printing system
    http://www.macworld.com/article/2029528/mac-troubleshooting-what-to-do-when-you- cant-print.html
    Also try deleting the printer from your printer Q system preferences, then reinstalling it (highlight the printer click the minus symbol, then click the plus symbol and add it again. Reboot, and try.

  • I am using AI CS2 on an eMac and cannot get the print menu options to recognize the print features l

    I am using AI CS2 on an eMac and cannot get the print menu options to recognize the print features like? I need to use mirror feature and high quality printing and it will not work.

    jdanek
    It is an eMac. I have a corrupted font book. How can I fix/re-install/or download a new font book app? Most fonts that were in it work, some do not, but I cannot open it nor can I install fonts into it.  This happened after the eMac OS was upgraded from 10.3.9 to 10.4.11 and AI was upgraded to CS2
    Kind regards,
    Steve Mosher
    Village Graphics LLC
    438 Troy Loop
    The Villages,  FL  32162
    352-409-6853
    [email protected]

  • How to Get the Print of General Ledger with Opening balances

    Hi Friends.
    How can I get the print out of G.Ledger with all line item transactions and opening balances in a company code?
    Please explain.
    Regards.
    Srini

    hi
    for line item-
    goto s_alr_87012282 and select menu bar "list">print
    for g/l statement
    goto s_alr_87012332 same step above
    rgs

  • How do I get the printer driver for a hp officejet 6500 e709n?

    How do I get the printer driver for a hp officejet 6500 e709n? When I add the printer, Apple says the software is not available and to contact the manufacturer. HP says it is available from Apple.

    Hi Robmtu,
    You can find the direct download here.

  • I cant print i get the printer spool service message

    i have pavallion a1737c and i cant print!!! i get the printing spool service is not running,  i have tried to turn on the spooler in the services area but no luck,  can someone please help

    Norton cancelled their protection. My printer spool went with their cancellation. Now it doesn't work.

  • I have requested and accepted the most current Firefox program updates with my windows vista system. They are not registering but I am told they are downloaded. Then I cannot get the printer option to work with any version of firefox. in English

    I have taken the firefox updates when offered to 4.4. I have the browser as an aside to Internet Explorer 9 as a backup browser. When I use Firefox I am being told my system is not up to date and I need a newer version. I download the version and keep getting told I am not current with firefox. When Firefox DOES work I cannot get any printer icon or settings to enable and allow the printing of a page. I have to use IE9 to get the printer to work. Using eBay I cannot get the uploading of pictures from my computer to consistently operate even though I use small JPG files under 500KB.

    There are a lot of IntelliTXT like ''ad'' pop-ups possible.
    If your current Adblock Plus filter settings aren't blocking some pop-ups then it is best to take this to the Adblock Plus forum.
    * https://adblockplus.org/forum/
    * http://en.wikipedia.org/wiki/Category:Internet_advertising_services_and_affiliate_networks
    * http://en.wikipedia.org/wiki/IntelliTXT

  • How to get the printer button to appear

    The buttons on my printer should say scan, copy & print.
    They are now saying scan, copy & copy.   how do I get the print button back, as I cannot print

    Hi,
    What is the exact printer model? is it the HP Photosmart C4385?
    The following model does not provide any fax capabilities as you may find by its datasheet below:
    http://cdn.cnetcontent.com/b6/14/b6144c8e-0a16-4ce3-a66d-2eb03e86f4d9.pdf
    If I misunderstood your pritner model, please clarify the exact model.
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Unable to get the print option in network for Services

    Hi Experts
    I am unable to get the print for services in CN21/CN22 but the print option is in Disable Mode .How should I get it as to Enable Mode to get print .Pl find the attached screenshot for reference
    Thanks in Advance
    Ambarish

    Hi Ambarish,
    There will be an option to disable and enable the print icon for a particular sap screen . SAP Screen has been designed as per business requirement  only  . You may reach out to your functional team or developer team to assign the required output type and form which can enable the icon .
    Also check whether you have required authorization to  print from SAP
    I hope so it will help you
    Regards,
    Aparna

  • I have an Imac running snow leopard and have recently installed a cannon i-sensys lbp7750Cdn printer since then I can't get the printer working and the air port has lost the DNS servers; if it ever had them!!! but it dose not look happy. Can any one help

    I have an Imac running snow leopard and have recently installed a cannon i-sensys lbp7750Cdn printer since then I can't get the printer working and the air port has lost the DNS servers; if it ever had them!!! but it dose not look happy and it is telling me so. Can any one help please?

    Snow Leopard breaks quite a few drivers - my Canon exhibited the same problem.
    I eventually found updated drivers on the Canon website. You can try that with the HP, but if the all-in-one is more than a year or so old, don't hold your breath.
    You can also try Software Update to see if it will offer new drivers, or failing that go to the Support Downloads site and search for HP updates.
    In fact there's a new one for HP at the top of the list just now.
    You may not necessarily want the latest one, though - check the specs to see if your model is covered; if not, search for the previous update etc.

  • I am using windows 7 and can't get the print drives to load for F2210 printer

    I am using windows 7 and can't get the print drives to load for F2210 printer and I keep receiving different fatal error codes.

    Hello @Imvertical 
    Welcome to the forums!
    I read about how you're attempting to install your Deskjet F2210 on your Windows 7 system and receive Fatal Error codes. I will do my best to help and make some suggestions for you to try. 
    To being, try a standard copy from the unit to see if it will copy. If copies work, continue troubleshooting. If not, let me know what happened when you made a copy.
    Next:
    Perform a Level 3 uninstall.
    There are 2 ways you can run the uninstall:
    From Original installation CD:
    1. Insert CD into drive, and then cancel the installer
    2. Click Start and open 'Computer', and then right click on the CD drive and open
    3. Open folder Util
    4. Open folder CCC
    5. If you have an HP computer run the L3uninstall.exe. If you have a non-HP computer run the L4uninstall.exe
    6. When the uninstall has completed restart the computer
    7. Run Disk cleanup from Accessories\ System Tools
    8. Download and install the latest version of Adobe flash player
    http://www.adobe.com/support/flashplayer/downloads.html
    9. Download the full feature software and drivers: HP Deskjet F2200/F2224 All-in-One Printer series Full Feature Software and Driver
    10. Run the download to reinstall the printer
    If software was downloaded and extracted to your system:
    1. Click Start and type %temp% in the run field
    2. Look for, and open the folder starting with 7z (Example: 7zS2356) (If there is more than one, choose the most recent folder)
    3. Open folder Util
    4. Open folder CCC
    5. If you have an HP computer run the L3uninstall.exe. If you have a non-HP computer run the L4uninstall.exe
    6. When the uninstall has completed restart the computer
    7. Run Disk cleanup from Accessories\ System Tools
    8. Download and install the latest version of Adobe flash player
    http://www.adobe.com/support/flashplayer/downloads.html
    9. Download the full feature software and drivers: HP Deskjet F2200/F2224 All-in-One Printer series Full Feature Software and Driver
    10. Run the download to reinstall the printer
    Please let me know if the installation worked after the Level 3 uninstall.
    Good luck and have a nice Wednesday!
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • I connected my Canon printer to time capsule, and can print OK. However, I can't get the printer scanner to work. How do you set up the scanner with Time Capsule?

    I connected my Canon printer to time capsule, and can print OK. However, I can't get the printer scanner to work. How do you set up the scanner with Time Capsule?

    You cannot use USB. It has to be a network capable printer.. is it?? You did not indicate how it is connected.. but by wireless or ethernet then scanning is possible otherwise not.

  • Getting the print sizes i want

    I am having an issue with photos that I want to size print. If i have a photo all ready to be printed and want to print it as an 8X10, when i put up the crop marks for 8X10, the aera that i want in the photo gets cut off. It is like putting an 8X10 box on the photo versus putting the photo in an 8X10 box. Is there a way to set the file up to print that photo to any size and get that photo to fit the crop size (4X6, 8X10, etc)?
    Thanks, Brian

    I am sending them out to Mpix. When I upload the file and then go select a photo print size, i am not getting what i want. I just don't want to have photos up there and people would not be able to select the size that want and get the print to be the way it should. I know that sending the files to Mpix and how they print there is probably not a  Lightroom issue, but i just want to make sure what i export from LR is going to work.
    Thanks

  • I have an iMac OSLion.  After accidently deleting the printer, I have reset the printer system.  Then plug printer in and hoped it would recognize it, but no. Now what do I do to get the printer back?

    I have an IMac OS Lion.  After accidently deleting the printer I have reset the printing system, and plugged the printer in again, and hoped the computer would recognize it, but no it didn't.  Now what do I do to get the printer back again?

    Hello.
    You'll probably have to add the printer again. You can do it like this:
    System Preferences > Print & Scan. Click on the '+' icon and choose your printer.
    Morgan

  • I am setting up for the first time, i didn't get the print out while setting up with my sign info

    i am setting up for the first time, i didn't get the print out while setting up with my sign information. None of my email information or original password are working.

    Hi there, what printer model do you own?
    If my reply helped you, feel free to click on the Kudos button (hover over the "thumbs up").
    If my reply solved your problem please click on the Accepted Solution button so other Forum users may benefit from viewing the post.
    I am an HP employee.

Maybe you are looking for

  • Interpretation of Fiscal year variant

    Hello Experts, Ok, using the Tcode OB29, I could see the fiscal year variant K4, K6,  K7 as follows: Variant----Yr Dependent--Calendar Yr--Posting Periods----Special Per. K4---- Unchecked---- Checked---- 4---- 2         K6---- checked---- Unchecked--

  • Using a MacBook as 2nd monitor for iMac?

    Hi. Got a shiny new 20" iMac with the 256MB graphics. I understand this unit can drive an external display without too much stress via the mini-DVI out. Question is, since the household is getting a Macbook soon anyways, and I'll only occasionally ne

  • Ringtones sync problem with IP6+

    Dear all, I have got my IPhone 6 + last week and I have been managed to sync my own ringtones to it but I got stuck. With my previous Iphone, I always chose the "Manual manage music and videos" option and do the same thing for ringtones. It means I d

  • Pre 9 no sound

    I'm using Pre elements 9 .. if I can find my pre 7, I will upload it.. anyway.. is there yet a fix for the "no sound" problem yet? my exported video will play audio for 30 sec. then nothing but silence. I've changed the audio file type from wma to mp

  • Freezing, email issues etc

    My BRAND NEW blackberry 9360 has soo many problems already. My phone froze very very often when I first bought it, until I deleted a lot of the apps taking up a lot of space. Even after this, my phone still freezes quite often. Apart from this, I set