"Print" key requires a second click to print after changing the presence of another page for visible
I have trouble getting a "print key" executing the two lines of code. I need to make the second page in a printable form and then print, it makes page 2 visible but then when the print dialogue box appears only one page is page 1. Can I get to run one after the other in one click? I played with the pre-press, and no luck there. Page2 is set to hidden again on the postPrint which works very well.
I created a very simple version of this problem, 2 pages, page 2 has the value hidden on initialize. On page 1 is a button with only this code to the click event:
event: click
Pg2.presence = "visible";
XFA. Host.Print (1, "0", (xfa.host.numPages - 1) m:System.NET.SocketAddress.ToString (), 0, 0, 0, 0, 0);
And she still only page 1 in the print dialog box, even if on the insight behind this pop-up window, I can see that the document now has 2 pages long! What I'm missing here?
Thank you
Try this:
Pg2.presence="visible"; var MyDoc = event.target; var pp = MyDoc.getPrintParams(); var fv = pp.constants.flagValues; pp.flags |= (fv.setPageSize); pp.pageHandling = pp.constants.handling.none; MyDoc.print(pp);
Let me know if all of the settings of your printer still work with that (including printing annotated, as you set it to false and the default value true).
Kyle
Tags: Adobe LiveCycle
Similar Questions
-
HP laserjet p1006: does not print after changing the toner
I just changed the toner. The green light is on, but when something I send to the printer to print, the orange error light. Before inserting the toner, I pulled the Strip in transparent plastic attached to an orange tongue and the black cloth. I tried to reinsert the toner and turn on/off the printer again. Help please if you can. Thank you!
Hi @cindycb,
Welcome to the Forums of HP Support! I read your post and to see that when you try to print after changing the toner, the Attention light. I would like to help you today. If this helps you to find a solution, please click on the button "Accept as Solution" down below in this message. If you want to say thanks for my effort to help, click on the 'Thumbs Up' to give me a Kudos.
Make sure all the orange, packaging material is to remove the toner.
Make sure that the printer is connected directly to a wall outlet. (do not use a hub or a surge protector) This ensures that the printer is full on and can help this situation.
Try and print a self-test on the printer hardware to see if it is a hardware or software problem.
Open and close the cover five times quickly. It should print a page with black lines on it.
You can find the flashing light distribution in this document and the right solutions for the reason that you are experiencing, lights blinking on HP LaserJet P1005, P1006, P1007, P1008 and P1009 Printer Series.
You use Genuine HP Toner?
Please let me know the result and if there is anything else I can help you. Thank you.
-
Office Jet 6500 will not print after changing the ink cartridges
Office Jet 6500 will not print after changing the ink cartridges
Hello
This doesn't seem to be a problem with the printer itself and not Windows. I also suggest to contact the manufacturer. In this case, HP.
Please see here: http://www8.hp.com/us/en/support-drivers.html
-
DeskJet 3520: Question of an another DeskJet 3520 print after changing the ink
Well, I'm another person with a POS deskjet 3520 which ceased print just black ink because I had the audacity to change a new cartridge. I've read at least 4 other threads full of posters with this problem extending over 1 1/2 years. I tried all the 'solutions' that HP experts say to try and not one worked. The printer is 1 month out of warranty now. I tried cleaning the contacts and updated the firmware and bought a second cartridge new, just in case the first was defective. HP really has need of man up and admit they have a problem with this model and fix.
As it comes a 3520 model, you must call phone HP support, even if it is out of warranty. See the post for more details
-
HP deskjet D1520: incorectly color printing after changing the black ink
I replaced my color ink the printer was working fine, then the necessary black replaced so I replaced that and now print colors turned off. I did a test on my computer. The upper part is the color on the screen, the bottom is the printed color. Help, please! I removed my devices, Cup of the printer and reconnected, then reinstalled and it still printed in this way.
Hi @sadie731,
Welcome to the HP Support forum.
I understand that you have a HP Deskjet D1520 printer that prints wrong colors when sending your computer Windows 8 print jobs. I would like to help with that.
Page 87 of the HP Deskjet D1500 Series user manual, providing the steps which can solve the problems of print like that quality.
If it's a matter of print quality caused by the software and printer drivers. It would be better to completely uninstall the software and printer drivers. Here is a video that you can use to reference - uninstalling in Windows 8 HP printer drivers, if needed.
Once uninstalled, you must reinstall the software and drivers. Here is a link to the page where you can start downloading - drivers and software HP Deskjet full functionality.
Please let me know if that solves the problem, or if you need assistance.
In fact, if it helps you to find a solution, please click on the 'accept as Solution' and the 'thumbs up' buttons down below in this message.
Thank you!
-
I got my printer Lexmark wireless connected to my network wireless of Charter, and then switch to att. for quite awhile without printer. tried today for a long time to connect. no luck!
Hi SueNeeman,
-What operating system is installed on the computer?
If you have installed Windows 7, then you can view this tutorial because it is designed to help you identify and fix common printer problems in Windows, including print errors, print spooler errors, and other issues that could prevent you from printing.
Solve printer problems: http://windows.microsoft.com/en-in/windows/printer-problems-in-windows-help#fix-printer-problems=windows-7&v1h=win8tab1&v2h=win7tab1&v3h=winvistatab1&v4h=winxptab1
Thank you.
-
Maxify MB2320 will not print after changing the ink cartridge
I just changed my black ink cartridge last night and now it won't print. B504 code keeps coming up and I followed these instructions to restart the printer. Whenever I turn on the printer, it spits out 2 pieces of paper, so the paper is not jammed.
Hi GinaC,
To resolve the error B504, contact technical support directly. There is NO charge for this call. Information in real-time to a technical assistance call live would be very beneficial in this case.
Please call 1-866-261-9362, Monday - Friday 10:00-10: 00 ET (excluding holidays).
-
Always said "Cannot print" after changing the cartridge twice.
It is an Officejet Pro 8500 has. He gave me a message saying "Unable to print" and meant to replace the following depeleted cartridges to resume printing. I ran the animated illustration which stated that it was the cyan cartridge. I got a replacement and installed. He gave me the same message. I got another cartridge and tried again, even once he gave me the same message.
I am at a loss. What should I try then operate?
Here a link to a document that deals with the error you get on the printer. It will give troubleshooting steps to try to solve the problem it produces. I hope this helps.
If you reach the end of the document and find that the printer still does not work. Sought to be the replacement of the product.
If you are still in warranty, HP can replace the printer without cost to you. I'll link the information to get in touch with them below. The link takes you to a form to fill out. Once you fill it and she is treated, it will give you the printers warranty information, a file number and the phone number to call.
HP Technical Support call case form:
https://h10025.www1.HP.com/ewfrf/wc/phoneInput?cc=us&DLC=en&LC=en&product=5061082 -
Epson Aculaser C 1100 printer does not print after that the text of the error 'install C Tnr basket' black and printer doenst photography black and white or grayscale pages
the printer is not the shades of grey even print cartridge is not yet empty
y at - it software for hauler color printing?
Thanks for your comments
Hello Nilsvolkel,
Thanks for the reply.
I'm sorry for the late reply.
I appreciate your patience and time.
Do not require any special software.
However, you can use the steps in the following articles and check.
Reference:
http://eSupport.Epson-Europe.com/ViewArticle.aspx?LNG=fi-fi&kbid=328037&data=FCFfEfoyEiGLYDIUqzWyE0QE3127X87y&CL=1http://Windows.Microsoft.com/en-us/Windows/choosing-print-options#1TC=Windows-7
Please keep us informed.
Thank you
-
There was a similar position two years ago. After changing the cartiridge (564XL) black printing, the printer will not copy documents. He behaves as if I placed a blank sheet of paper on the glass. I can scan the document and print the .jpeg, but not the document. The print quality of everything else is mediocre - very light on blacks, even though the colors are fine. I ran through all the diagnostic tests and he told me that the printer is fine, although the black box on the diagnostic page is empty. The difference between my printer and the one in the previous post, it's mine is 18 months and longer warranty. It has been little used. In the previous post, none of the solutions have been proposed, but apparently HP has replaced the printer. Any suggestions, or is this device intended for scrap?
Try youtube videos here.
https://www.YouTube.com/results?search_query=Photosmart+6520+print+head
Looking to learn more. If no joy, your printer is toast.
-
I have an all-in-one Photosmart 7510. My slides print head is no longer the center when I open the printer to change the ink cartridges. It remains in place on the right side. I can't access the cartridges. Otherwise, the printer can print pages without problem - it is not blocked when printing. I have had this printer for during 9 months - it is a new problem.
Thanks, but I returned the printer for a replacement - it was still under warranty.
-
HP Deskjet 1000 printer - just changed the black cartridge for the first time and now it will only print first half of the page. Can anyone help
Hello Gloria,.
I ask you to execute methods in the following link and check if the problem is resolved.
You can also contact the manufacturer to find out how to clean the print head.
http://h10025.www1.HP.com/ewfrf/wc/siteHome?cc=us&LC=en
Please get back to us with the State of the question.
-
As above. I checked the USB port and it is connected.
Original title: printer problem. After changing the cartridge, I get a message that the USB cable is not connected?
Hello
1. you receive an error message/code when you try to print?
2. What is the serial number and model of the printer?
Follow the steps.
Method 1
Run the hardware and devices Troubleshooter
This utility checks the common issues of interest and ensures that a new device or hardware connected to your computer has been installed correctly.
http://Windows.Microsoft.com/en-us/Windows7/open-the-hardware-and-devices-TroubleshooterAlso run convenience store Print that would help us diagnose the problem better
http://Windows.Microsoft.com/en-us/Windows7/open-the-printer-TroubleshooterMethod 2
(a) check the physical connection of the printer and make sure that the USB cable is properly plugged.
(b) connect the printer to a different USB port and check if it helps.
(c) check the on another computer.
Method 3
Run the fix - it tool from the link.
Diagnose and automatically fix problems printing and printer http://support.Microsoft.com/mats/printing_problems/
Method 4
If the previous step fails, follow the steps described in the following link:
Printer in Windows problems
http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows
Let us know if it helps. -
Change the SSID and WEP key after changing the AP
The Setup is a Linksys BEFSR41 router and a Linksys WAP54G access point.
Initial Setup used by default no WEP and SSID.
No problem connecting to my XPS1330.
Now, I would change the SSID (to distinguish my home network from other networks) and
Adding a WEP KEY.
VISTA will allow me to change the current, marked network to home or should I delete this one and start again?
Thank you
Bill
-
My printer displays a page to preview before printing, but divides the two page document when it prints.
Thanks for the offer of help. In the meantime, I found that the problem was corrected when I simply turned off the printer and it starts again.
Maybe you are looking for
-
How can I delete a lot of my Firefox browser.
I use a Mac version of office 10.6.8. On the advice of my Councillors ISP and Apple they said to uninstall Firefox, and then reinstall a new version and that should not a lot as the opening page. Have tried several times the online instructions but w
-
Satellite M30, the processor speed?
Hello I received my laptop Toshiba m30 pentium 1.6 m John Lewis back after replacing the LCD screen. After using it for a few hours last night, I realized the fan did not come at once.I checked the speed of the cpu and it is fixed at 600 mhz. I can't
-
The sentence differently: 10G OCP can upgrade to 11G OCP (1z0-050 or 1z0-034) and be always active, correct?They should NOT put just to 12 c, correct.Someone at work took the Oracle class in Chicago: Oracle 11 g new Featurers for administrators.They
-
PS icon Office replaced by large question mark
The usual CC of Photoshop icon on my desktop (Mac 10.9.5) has been replaced by a big question mark. Open PS, must now go toApplications, Adobe Photoshop and then click Adobe Photoshop CC2015 to open it. Why what happened?
-
Upgrade to vSphere client 5.1 U1 but using vCenter/ESXi 5.1 (not U1)
So I saw this recommendation from VMware:-----------The sequence for vSphere 5.1 update update 1 and their compatible VMware product (2037630)If you are using vSphere Client in your environment, it is recommended that you upgrade the vSphere Client t