Honouring the selected Printer on Mac - how ?
Hi All,
I have the following snippit of code to first prompt the user with a print dialog, then print the currently opened PDF document.
My issue is, while settings (such as page range, duplex, etc) are all being applied - the selected printer isn't and this is causing issues
1) On one test machine - it's just not printing (I suspect, because we initially set up the wrong printer - deleted it and added the correct one)
2) On my machine - it's always printing to my first printer even when I select one of my alternative printers.
I have the following code :
PMSessionPrintDialog (printer_printSession, printer_printSettings, printer_pageFormat, &accepted);
if(accepted)
printer_rec.printSession = printer_printSession;
printer_rec.printSettings = printer_printSettings;
printer_rec.pageFormat = printer_pageFormat;
UInt32 first, last, numCopies;
PMGetFirstPage(printer_printSettings, &first);
printer_rec.startPage = first-1; // mac defines first page as 1, PDFL as 0
PMGetLastPage(printer_printSettings, &last);
if( last < first ) last = first;
printer_rec.endPage = last-1; // endPage is not inclusive.
PMGetCopies(printer_printSettings, &numCopies);
printer_rec.nCopies = numCopies; }
Then, the actual print
DURING
PDFLPrintDoc(doc, &printer_rec);
success = true;
HANDLER
handle_PDF_Error( out );
END_HANDLER
What am I missing so that on Mac it honours the printer the user select on Mac ?
Note : On windows, you set the 'deviceName' and 'portName'. What's the equivalent on Mac ?
thanks
Kent.
As this is a PDFL question, you are best sending it through your designated support mechanism.
From: Adobe Forums <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
Date: Sun, 29 Jan 2012 13:35:06 -0800
To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
Subject: Honouring the selected Printer on Mac - how ?
Honouring the selected Printer on Mac - how ?
created by Kent29<http://forums.adobe.com/people/Kent29> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4172538#4172538
Similar Messages
-
Just upgraded to 10.5. I'm setting up a few printers and a plate maker. Got everything setup as far as I could tell but one machine wont work. It's an ImageRunner 8500 from Canon. When I try to print to that printer I get this:
The selected printer connection method is incorrect. Select the correct printer connection method in printer list, and then try to add the printer again.
Not what thats about. In the printer list, It shows up there with everything else that is connected via Appletalk. I got the PPD for the Konika Minolta CPP500 installed and it prints fine... any ideas? Thanks,
ChrisHi John
I tried Appletalk but that printer does not appear. However LPD does work. I think the problem was on checking my other Macs in the office, there is no way of telling whether they are connect via IPP or LPD as the set up appears the same, i.e. IP address. When I tried to add my the printer again, I had forgotten how we set it up originally.
Many thanks for pointing me in the right direction. -
Selection printing on mac osx lion safari
How do you print just the selected area on mac osx lion in the safari browser
Hello:
In your utilities folder you will find an application called "grab."
Open it and then look at the help for the application.
Barry -
You do not have sufficient access to your computer to connect to the selected printer
Environment
Print server: Windows 2008 R2 SP1
Clients: Windows XP SP3 + GPP
Drivers:
HP UPD PCL6 5.3.1.10527
Intermec 7.2.2
Ricoh UPD PS 3.9.0.0
Xerox UPD PS 5.216.12
Zebra 2.6.42.03
GPO Configuration - enables users to add printers/drivers from the print servers.
Background
For the last year, we've had the 2008R2 print server set up and the clients have not had any problems connecting to the print server to add printers.
Issue
Over the past ~3 weeks, we've gotten spurious reports from users stating they're unable to add a printer. The specific error displayed is:
You do not have sufficient access to your computer to connect to the selected printer.
It occurs for multiple vendors, so it's not a print driver specific issue. I've personally witnessed the problem where (using a User's account) I was unable to add Printer X out of a list of 10 random printers. 2 minutes later, still logged on
as the same user, I was then able to add Printer X which doesn't make any sense since nothing had changed.
Another user logging into the same workstation will not have any problems adding the same problematic printer. The user who had the problem can log onto a different workstation and add the same printer with no problems, so it's not a User permission
issue either.
Most of the time running gpupdate /force and/or rebooting the box will also 'solve' the problem.
Running the group policy results wizard on a few random workstations (which have exhibited this problem in the past), shows everything appears to be properly configured/enabled related to GPOs, including the
Prevent users from installing printer drivers setting per http://support.microsoft.com/kb/259937
Has anyone else ran into this problem lately?
How does one troubleshoot this issue since I can't faithfully reproduce it on demand since it appears to resolve itself after a period of time?Haven't found the smoking gun to this problem, but I am getting closer.
Troubleshooted another PC today which was exhibiting this problem for another user. Logged onto the PC with my User account and sure enough, received the same message for the same printer. Fired up Sysinternals Process Monitor, but nothing useful
was captured when receiving the failure message. There was also another Point and Print printer which was present on the workstation (i.e.
PrinterName on PrintServerName) for my User account which stated "printer cannot be removed. Access is Denied" when I tried to delete it. Odd. Getting properties on the printer would bring up the correct info from the print server
though, so it was valid and appeared functional.
I tried running the new
MS FixIT printing tool, but it failed in full mode with an admin account.
Next, I searched through the registry for this printername which I was unable to delete. Eventually it was found at:
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Providers\LanMan Print Services\Servers\PRINTSERVERNAME\Printers\PRINTERNAME
On a hunch, I deleted the entire PrinterName key, restarted the print spooler, and then was able to add the printer with no permission errors! There were several more printers listed in this registry key. I tried the same steps again:
validate receiving 'sufficient access' error.
purge printer's registry key
restart spooler
Able to add the same printer via point and print.
This solved the problem on half of the printers. The others added with no errors. The printer drivers in question are from both HP and Xerox, so I doubt it's a vendor specific issue and instead Windows (unsure if XP or 2008 though).
It would appear that Windows caches the information about the printer/driver/settings/etc from the print server in CurrentVersion\Print\Providers\LanMan Print Services\Servers\PRINTSERVERNAME\Printers\PRINTERNAME ? Why does it need to be duplicated
in both HKLM and HKCU?
Separate PC, further exploring this printer issue and the contents of the \LanMan Print Services\Servers\PRINTSERVERNAME\Printers\ keys. On this PC, I successfully ran the MS FixIt for Printing tool in Full mode and rebooted. After reboot, the
System Event logged the following for multiple printers -- which should've been deleted --
Event Type: Error
Event Source: Print
Event Category: None
Event ID: 23
Date: 4/9/2012
Time: 5:11:48 PM
User: NT AUTHORITY\SYSTEM
Computer: U-xxxxx
Description:
Printer UH-xxxxx-COLOR failed to initialize because a suitable Xerox Global Print Driver PS driver could not be found.
Event Type: Error
Event Source: Print
Event Category: None
Event ID: 23
Date: 4/9/2012
Time: 5:11:48 PM
User: NT AUTHORITY\SYSTEM
Computer: U-xxxxx
Description:
Printer UH-xxxxxx failed to initialize because a suitable HP Universal Printing PCL 6 (v5.3) driver could not be found.
Yet a minute later, the updated driver was automatically installed via P&P:
Event Type: Warning
Event Source: Print
Event Category: None
Event ID: 20
Date: 4/9/2012
Time: 5:12:22 PM
User: NT AUTHORITY\SYSTEM
Computer: U-xxxx
Description:
Printer Driver HP Universal Printing PCL 6 (v5.4) for Windows NT x86 Version-3 was added or updated. Files: <snip>
Sure enough, after checking the \LanMan Print Services\Servers\PRINTSERVERNAME\Printers\ keys, all of those printers which logged EventID 23 were still present! This time, I manually deleted the entire \LanMan Print Services\Servers\PRINTSERVERNAME\Printers\
subkeys, rebooted the PC, logged on, and those errors did not repeat.
Something strange is definitely going on with the printing subsystem on XP lately... -
RE: An error occurred while trying to add the selected printer. Error -9672
I am trying to add my HP 8450xi to my Printer List via Print Utility and get the following message: "An error occurred while trying to add the selected printer. Error -9672." I have tried everything, and this printer is only 2 years old. I was able to load an HP 69080 which is about 2 months old, and my Lanier LD232C drivers. Any ideas?
My HP 8450Xi is connected to my LAN [ethernet]. While I do have an Airport Card in my Mac Pro, and two airport base stations active for laptops, it is disabled. What is strange, I was able to load the drivers for a newer HP Network Deskjet 6980xi (Driver version 4.0.2), although it took a couple of times before it would successfully load, but could not figure out why it worked and the 8450xi (Driver 2.5.5) did not. Also, the 4.0.2 driver would not work with the 8450.
-
The software that you choose does not match the Selected Printer
Hi Friends,
I am trying to install a network Printer suing my Win Xp SP3 PC.
Since there is no drivers installed in this PC, I tried to select Have Disk option in the Bonjour Printer Setup Wizard and selected the INF file provided by the Manufaturer. When i select the INF file and click ok, It prompts with message "The software that you choose does not match the Selected Printer".
But the Manufaturer name is listed under the Manufacturer Tab and nothing on the Model Tab.
Any idea why i am getting this error message. Please help me if anyone is aware of this.I haven't seen Apple use a "shared secret". and believe this must be a message from the magazine app. I suggest asking the magazine, as this appears not to be an Apple problem.
-
I am using a new Brother printer/scanner. I have scanned once but now it is giving the message "printer offline". how do I fix this problem?
You need to contact Apple Support to deactivate iMessage. https://www.apple.com/support/appleid/contact/
-
How to hide or rename the HP Printer's Mac address from Lion Finder Sidebar
I have an HP d100a all in one printer, and since upgrading to OSX 10.7 (Lion), my printer's mac address shows up in the Finder Sidebar under Shared devices. I understand this is for the printers SD card slot to be shared over my network, however the name is not user friendly.
Is there a way to rename what is displayed in the Finder window, from the devices mac address to a friendlier name?
If not, is there a way to disable the sharing of the SD card slot so it is hidden from the sidebar completely?
I have found several posts from people not knowing what this entry is, but I have not managed to find any posts that explain how to rename or hide the entry.
Any help would be greatly appreciated.I have also registered to this forum to inform that the problem with showing the MAC-address in the sidebar of the finder is still not solved.
The strange thing is that the Embedded Web Server says:
"This specifies the Bonjour domain name assigned to the device, in the form <host name>.local. If a user-specified host name has not been assigned, the default host name HPxxxxxx is used, where xxxxxx are the last 6 digits of the LAN hardware (MAC) address. This option cannot be modified."
But I did assign a user-specified host name and that name does show-up everywere (also within Bonjour), except in the sidebar of the finder (hp###xx##x####). Lots of people have the same issue, when searching on the interet, but not one has found the solution.
Please help with solving this issues? -
I have a Macbook Pro running Leopard 10.5.8. I had a problem with my my operating system (my fault, I moved a file I shoudnt have) couldnt boot up but was able to boot up from a backup. I managed to repair my original system except now all the system folders, including hidden folders are littered with duplicate folders and files with the suffix (from old Mac). For the most part the dupes are an exact copy, but not always. I want to remove them to free up space and cant imagine duplicate folders in the /system/library are not hindering my computer. But I dont know where to start and am afraid of doing irreparable damage. Any ideas
pacull,
Use iCal>View>Show Notifications to choose what to do with the notification. -
Hello! I am trying to print from my iphone 4 to my LEXMARK printer. When trying to select my printer in my phone it comes up and says that there are no printers available... I dont know what to do at this point. Can someone PLEASE HELP???
I also cant get my music I have purchased, to become my ringtone???????
Thank you so much,
MichaelWhat's the model number of your Lexmark printer?
-
Error 9672 - An error Occurred when trying to add the selected printer
Hi. I got some issue with Leopard and printing. I couldn't print so I reloaded the HP Photosmart Installation disk (which in reality is for Tiger)......I got the message above. I cannot add the printer. I can print thru ordinary PCs, but not from the imac. I would have though that with the Leopard upgrades these drivers would have been updated automatically, but apparently not the case?
My HP 8450Xi is connected to my LAN [ethernet]. While I do have an Airport Card in my Mac Pro, and two airport base stations active for laptops, it is disabled. What is strange, I was able to load the drivers for a newer HP Network Deskjet 6980xi (Driver version 4.0.2), although it took a couple of times before it would successfully load, but could not figure out why it worked and the 8450xi (Driver 2.5.5) did not. Also, the 4.0.2 driver would not work with the 8450.
-
I downloaded the latest Firefox version. Upon loading it it doesn't retain the previous Home Page setting and always reverts to the Ask page, which is always indicated as the Home Page. This is annoying. How do I overcome this problem?
#Remove Ask Toolbar (if you have it installed):
#*http://support.mozilla.org/en-US/kb/Uninstalling+add-ons
#*http://support.mozilla.org/en-US/kb/Cannot%20uninstall%20an%20add-on
#*http://kb.mozillazine.org/Uninstalling_toolbars
#Reset your home page (if the Ask search page is displayed when starting Firefox): http://support.mozilla.org/en-US/kb/How+to+set+the+home+page
#*You can reset to the default by clicking "Restore to default" on Options > General > Startup > Home page. Be sure to set "When Firefox starts" to "Show my home page" on that same panel.
#Reset your Location Bar search engine (if typing a few words in the URL/Location Bar takes you to Ask search):
#*type '''''about:config''''' in your Location Bar, like typing a web site address, and press the Enter key
#*ignore warning and choose to continue
#*in Filter, type '''''keyword.URL'''''
#*in lower part of screen, if it is '''bold''' and shows "'''user set'''", right-click keyword.URL and choose "Reset"
#*in Filter, type '''''Ask'''''
#*any items in lower part of screen in '''bold''' and showing "'''user set'''", right-click and choose "Reset"
#*close about:config tab
#*See:
#**http://kb.mozillazine.org/About:config
#**http://kb.mozillazine.org/Location_Bar_search#Location_Bar_search_.28external_-_search_engine.29
#**http://kb.mozillazine.org/Keyword.url
#**http://www.techrena.net/computers/address-bar-search-provider-firefox/
#If Ask is shown in your Search Bar and you want to remove it:
#*https://support.mozilla.org/en-US/kb/Search%20bar
'''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
Not related to your question, but...
You may need to update some plug-ins. Check your plug-ins and update as necessary:
*Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
*Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.org/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
*'''''Adobe PDF Plug-In For Firefox and Netscape''''': [https://support.mozilla.org/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
*Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.org/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
*'''''Next Generation Java Plug-in for Mozilla browsers''''': [https://support.mozilla.org/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox] -
How to ignore the selection criteria temporary page in print
Hi Experts,
I use 2007A and when i would like to print example a Trial Balance then the system prints the selection criteria on the first printed page .
How can I delete or ignore this option? There's no need for this print.
I was searching in help files but with no success.
Thanks,
EszterIn Administration > System Initialization > Print Preferences > General Tab
There is a checkbox for "Print SAP Business One Generation Message"
Uncheck it to not print the first page with selection criteria.
Hope this was what you were looking for. -
How to create the select option for the Plant in screen (Module pool)
HI,
I am developing one module pool program and I have below requirement,
currently plant is acting like PARAMETER and the now it should be changed to select option.
how to create the select option in the screen
Thanks and regarding,
Malla
Moderator message - Cross post locked
Edited by: Rob Burbank on Dec 16, 2009 1:41 PMSteps to get SELECT-OPTIONS in module pool programs.
1.Start one dialog program with SAPMZ_001.
Place the below code in the TOP include of the dialog program.
TABLES marc.
SELECTION-SCREEN BEGIN OF SCREEN 3200 AS SUBSCREEN.
SELECT-OPTIONS: werks FOR marc-werks.
SELECTION-SCREEN END OF SCREEN 3200.
2 .Create one screen 3000.
Go to Layout of the screen and Define subscreen area on the screen and Name it as l_subscreen.
Place the below code in the Flow logic of the screen.
PROCESS BEFORE OUTPUT.
CALL SUBSCREEN l_subscreen INCLUDING 'SAPMZ_001' '3200'.
PROCESS AFTER INPUT.
CALL SUBSCREEN l_subscreen.
Activate all.
Create Transaction code for the dialog program .
Execute the transaction code. You will see the select-option for werks how we see on Selection-screen. -
How do I fix the "U052" error? It is stating that I have the wrong print head.
When I was printing some business documents, my printer stopped working and threw the error code "U052" and stated, "The type of print head is incorrect. Install the correct print head." How do I fix this problem?
Hi, daviddavis618!
So that the Community can help you better, we will need to know exactly which Canon printer model you're using. That, and any other details you'd like to give will help the Community better understand your issue!
If this is a time-sensitive matter, our US-based technical support team is standing by, ready to help 24/7 via Email at http://bit.ly/EmailCanon or by phone at 1-800-OK-CANON (1-800-652-2666) weekdays between 10 AM and 10 PM ET (7 AM to 7 PM PT).
Thanks and have a great day!
Maybe you are looking for
-
What are the advantages of moving from Tiger to Leopard?
Hello all, I currently have an iBook G4 Mac with 1.25MB RAM and a 1.2GHZ processor running Tiger 10.4.11. I was thinking of upgrading to Leopard in order to get the longest life out of my system before I can afford a Mac. Before I take the pluge I'd
-
Hello! I have the Acrobat XI test version installed, got the registration Mail and confirmed it. When i have the program opened and try to convert the file from a pdf to a word and press the convert button, it shows a the message "application failed"
-
More then 5 key-presses?
Hi there, I'm trying to re-create a game that me and my friends have been playing quite a lot in the last few weeks. The game is called Kurve, and it's an offline multiplayer game. Up to six players can play the game on one keyboard. The idea of the
-
Hi, I have the following scenario. Its a simple BPEL process with string input and string output with a call to Human Task. the Human Task has the expiration duration of 5 mins. I invoke the process from bpel console and as expected it waits for the
-
Item level messaging for Me21n
Hi, Can macro mmpur_message be used to populate error message on item level of Me21n. Regards. Kusum