Print only two pages.

The specific information on my form button will be two last pages hidden on emphasis of form visible and set to the first field in the first page of information. The entire form has dynamic subforms and they can push, so I don't know the exact number of pages at the end I want to have a "print key" on these two pages of information that will print on their own, not the entire form. Can someone please provide assistance on this one.

Thank you

Hello

If you drag a standard print on the page button, you will see that there are eight parameters:

xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);

The second parameter specifies the '0' start page, like page numbers use a numbering system of zero. The first page of your form is '0 '.

The third parameter specifies the last page to print. It is a basic calculation where xfa.host.numPages counts the total number of pages AND-1, the numbering system which brings to zero.

All you have to do is add a line to find the page number that the "print" key (for example second plast page) and then use this information in the parameters 2 and 3.

var vPage = xfa.layout.page(this);
xfa.host.print(1,(vPage -1).toString(), (vPage).toString(), 0, 1, 0, 0, 0);

The vPage will get the page number, counting from 1. The print settings then use this information to set the start page and the end page. No matter how many pages is ahead of the last two pages, this script will still display the page with the "print" button and the next page.

Hope that helps,

Niall

Tags: Adobe LiveCycle

Similar Questions

  • ENVY 5530 e-all-in-One Series: My ENVY 5530 e-all-in-one prints only two pages of a multi-page document.

    My newly installed (Jan 2015) ENVY 5530 e-all-in-one prints only two pages of a document with several pages of my HP desk top 500-123ea, windows 8.1. Message on PC "Unable to print document", it's even on Double or single sided printing.  A ran Scan doctor, OK; reloaded software and Firmware from the Hp site. He spent hours and hours of reading the elements of list of support HP; Impossible to talk online with HP. very in angry and frustrated. This HP product seems not as "fit for purpose". I will give HP Feedback after this announcement and rate accordingly. I beleve others have similar experience of this problem. HP is aware?  Is anyone out there that can help?

    We gladly invite you.

    A Roll-up update is already available since December, although it seems that the description is not being updated accordingly.

    Follow the section "get the hotfix rollup for Windows 8.1"in my previous link, which can be obtained by installing the package or by using Windows Update, this is the update that the articale refers... ".

    Shlomi

  • set the printer to print only one page always

    I have a HPlaserjet MFP 1005. I want to put to print only one page which isusually necessary. How do I?

    Hey @neelp,

    Welcome to the HP forums! I hope you enjoy your stay here.

    I see you try to set your Laserjet P1005 MFP always print one page only. This isn't an option through Windows PC or Apple, but there are two ways to work around this problem. The first would be to pay attention to what is being printed by activating the mode print preview before you print. The second solution would be to have only a sheet of paper in the printer at any time.

    If you have questions about the verification of print previews please let me know which operating system you use on your computer but also what program you use and I see if I can help you with that. If you are not sure what your operating system is you can click here to find. Even if you have any other questions please let me know.

    If this solves your problem then please let other users of the forum know clicking on accept as a Solution.

    I hope this helps and I hope you have a great weekend!

  • Firefox print only 4 pages of a .htm file, while internet Explorer prints all 9 pages

    Firefox print only 4 pages of a .htm file, while internet Explorer prints all 9 pages

    (it's a Treasury Direct 1099 handset file in htm format

  • HP deskjet 1510 prints only the page displayed in email

    HP deskjet all in 1 print only displayed page in email. Solved.

    Hello @Jaxtuff,

    Welcome to the HP Forums!

    I understand that your 1510 Deskjet prints only the display page in your Email. I will do my best to help you! What do you mean by electronic display? It is only printing a certain body of this Email? Could elaborate you more on this? I need to know your operating system on your computer? Windows or Mac?

    How is the printer connected? USB or wireless?

    What type of browser Web are you using and what type of e-mail?

    Please verify this information and I will help you. Have a good night!

  • When I give a print, only blank page comes my printer is HP Laser Jet P1102

    When I give a print, only blank page comes my printer is HP Laser Jet P1102

    Hi aremps,

    1 did you changes to the computer before the show?
    2. what operating system you have installed in the computer?

    This problem can occur because the print settings cartridge. Check your ink cartridges to see if you are out of ink. Refer to the printer manual for settings and troubleshooting.

    Please select the operating system and follow the instructions to solve the problem:
    http://h10025.www1.HP.com/ewfrf/wc/document?DocName=c01892627&cc=us&DLC=en&LC=en

    Please report if you are still having the problem. I will be happy to provide you with additional options.

  • How to print only commented pages

    There is a built-in function to print only the pages that contain comments (Reader Acrobat X)?

    If not, does anyone know an alternative solution for this?

    Good day

    Eki

    Not with the reader. You could do this with Acrobat via JavaScript and tools.

  • Photosmart 7510 prints only one page when I copy 2 sided-multipage document

    I have a two-sided 4-page document. I have placer place in autonatic tray, select Copy 2 head to head 2 and press "Black." All pages are scanned, but only one page (2 sides), one out. I expect all 4 pages 2 faces out. What's wrong?

    Thank you.

    You are right. This printer does not the ADF duplex scan. It will print a copy of the 2 sides but the face page of the first page front and back on the face of the first page printed copy pages and page of the face of the second duplex page on the back of the first page printed from copy. What a waste. Well, I need now to decide if I want to keep this printer or send it back since it's the LPB brand.

  • Unable to print only one page in a multiple page / image tiff file using Windows Photo Gallery

    IT seems that for Windows Vista Photo Gallery is able to display multiple images in a TIFF file format when printing, but it does not select the image to be printed. Whenever I print a tiff image file two pages to print.  Since most of my photos are in TIFF format, and each contains two images one by one another at a reduced resolution and normal resolution I'm only interested in printing the first image and not the second.  I really don't want to convert all my photos in a different format.  Does anyone know if there is a setting to fix this?

    Hi KKosin

    Welcome to the Microsoft Vista answers Forum!

    I suggest measures are:

    1. try to print the image in MS Paint, steps to follow:

    i. Click Start, in the search box, type in the paint

    II. open the document to print

    III. click on print and check

    2. change the format of an image file and check if this problem is still happening. You can change the type of file to the JPEG/JPG format. Steps to follow:

    i. right click on the file type

    II. select Rename

    III. the extension .jpg or .jepg replace

    IV. and then try to print

    Here are some links for reference:

    Explore the features: Windows Photo Gallery

    http://www.Microsoft.com/Windows/Windows-Vista/features/photo-gallery.aspx

    Windows Photo Gallery: frequently asked questions

    http://windowshelp.Microsoft.com/Windows/en-us/help/d29d1fe4-EECD-4ae0-9efa-423098e5406b1033.mspx

    Hope this information is useful.

    Let me know if it worked.

    All the best!

    Thank you, and in what concerns:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • HP Deskjet 2540: How to print only the Page showing

    How to fix my printer to print just what is on the screen?

    For example, I am trying to print the list of the NBA team, which shows on the screen, but when I hit print, it prints five pages and the list is divided between the last two pages.

    I used to have a nice little program, years, called "Print Screen", which I was allowed to do, but it became obsolete.  My HP 2540 is new and I have the CD with any software.  Is there something out there that will help you?  TIA

    D-S-N

    Thank you banhien, but as I mentioned in the post, the list was divided between two pages when it print so choose page I was only half of the team.  However, I found a solution, provided by HP and ready to install.  I remembered a window asking if I wanted to install "HP Smart Print" shortly after I installed my new printer to appear.  I didn't know what it was, I went on it.  I shouldn't, because it's actually the version of HP of the old program 'Print Screen'.

    It allows you to choose from, with the mouse, the entire page or a part of the page, preview and enlarge (up to 200%) or to reduce and print any number of pages you want.  Really great!  I found it waiting to be installed in 'Tools' on the menu of Office Windows 8.1 under "HP Smart Print 2.1".»  As soon as it is installed and I went to the for use, he informed me that there is a 'Smart Print 2.7' update available, I did, it only took about 30 seconds and he was.  It works perfectly.

    A second solution is to go out tomorrow and buy another victory. 8.0 HP keyboard, to replace my five-year-old wireless keyboard HP Deluxe Desktop which is supported only through Win XP and who does not the "Prnt scrn" button  I guess it is old 32-bit and 64 - bit.  Hitting "ALT - Prnt scrn" used to work with XP and earlier operating systems.

    Dennis

  • How can I print only 1 page web/29 FF? With 29, you can change only the first field (1 of 5, 2 of 5, 3, 5, etc.) This means I can print only 5 pages,

    So I can not print just 1 of 5 pages. The default, 1-5, will display all 5 pages. The 2nd field cannot be changed, possible in previous versions of FF, 1 of 1. Therefore, I can print only all 5 pages, 2-5, 3-5, etc. WTF - I keep losing the print paper. I had printing edit add-on, but that doesn't seem to help. I've been through several versions of FF and do not like the format of 29.

    In fact, with the addon print change, if I click on the arrow down I get old print format options and can do.

  • C4750 all-in-one will print only 2 page 8

    I finally got my all-in-one printer of C4750 to leave saying he was offline now, now it will print only less than 2 pages of a Quebec of 8 pages.

    Hi CIN4,

    Thanks for the reply.

    I would recommend that you download and run the HP print and Scan Doctor and see what diagnosis it can offer you

  • prints only last page

    My Officejet 7310 all-in-one portable printer will only print the last page of a print job.   I just installed W8.1 and loaded all the support of HP for this printer and 8.1 - down and installed.   The answer to the print request is very fast, but only the last page of a multiple page document comes out.  I still w / XP on a separate disk on this Dell PC and if I boot with XP, the printer works fine, but significantly slower to start than und 8.1 - prints all pages in the job.  Also, I have an HP 5550 connected to this PC and it works fine, prints all pages, money, time, XP and 8.1 W.

    Any help will be appreciated.

    Bobteague

    Hello

    I posted the answer here

    http://h30434.www3.HP.com/T5/printing-issues-troubleshooting/solution-for-printer-only-prints-one-page-in-win-8-1/m-p/4242382

    Hope this will help you.

    Good impression

  • How can I print only selected pages in a Multipage document?

    HP Envy 114 e - All - in-One Printer

    How to print only pages 2 and 4 of a 10 page document using my printer of 114 do you want?

    Hello

    Where to print from? Under Word or PDF, you can select which pages to print.

    Kind regards.

  • HP Color LaserJet CM1312 nfi no print only one page (document)

    Hi all.

    I'm in big trouble with Color LaserJet 1312 nfi (on 2 PC). Printer still print ONLY a single document (regardless of the number of pages) that I can't continue. I have to restart computer or the user to login and I print a new document. Scan OK.

    PC config:

    Windows 7 x 86

    connect via the USB port (but LAN made the same mistake)

    PCL6 driver

    I tried:

    reset to factory default

    the latest firmware update

    connect via LAN instead of USB

    Print via another PC (printer sharing)

    connect the printer to the other PC (USB, LAN)

    install the drivers of PCL5

    turn off Mopier mode (not available)

    Win XP - OK (printer so no problem)

    Any ideas?

    Thank you.

    Hello.

    Installation new version Universal Print Driver for Post Script - no change.

    I tried a thousand ways and WE work:

    install driver of the old school-HP Laser Jet III from Windows Update.

    I hope it helps someone...

Maybe you are looking for