How to prevent user from selecting a specific printer?

Hi there
I have a MailFolder which has an ArrayList of Email objects inside it. Each MailFolder has an attribute called folderFile which is a reference to a folder in the operating system. Each Email has an attribute called parentFile which is a reference to a file in the operating system.
Now, I am trying to put printing into my application.
When I print using a normal printer like my HP Deskjet or the likes - an actual physical printer - everything works fine. But when I print using the Microsoft Office Document Image Writer, things go wierd. The following things happen;
I call myMailFolder.getFolderFile().exists() and this = false. But if I (in the debugger) make a new file pointing to the same path, .exists() = true. Also if I look in the OS, the file exists. So somehow in the job.print() this Document Image writer seems to be messing up this file reference. The same thing happens to the myEmail.getParentFile().
So to fix this, can anyone tell me how to prevent the user from selecting this printer, or can anyone tell me why this is happening only with the Document Image Writer?
Many thanks!
Rachel

I have similar problem with our printing program. I am printing Java Tables, zoom in every column in a landscape page accross multiple pages.
There are two fatal problems:
1. On Dell Latitude laptop, the HP5100 printer didn't work; I have to change the code to draw the table header with 2D graphics.
2. Crash when printing on MS document image writer, but on some computers
it works perfectly.
Any one have a good solution/same result for topic 2?
Thanks,

Similar Messages

  • How to prevent users from creating new folders in share folder directory?

    Hello guys
    I'd like to know How to prevent users from creating new folders in share folder directory but still keep their power of creating new folders in their personal 'my folder'?
    I tried changing the 'manage privilage ---- create folder' to deny certain user accounts, but by doing so, it also stops the user from creating new folders in their 'my folder', which is not good..
    I also tried going into these share folders and tried different access types such as 'change/delete', 'read', 'traverse folder' etc, but none of it work ideally. The 'change/delete' access still allows them to create new folders, 'read' access prevents creating new folders but also take away their power of saving reports..
    Any thoughts on how to take away their ability to ONLY create new folders in share folder areas without affecting their other privileges?
    Please advise
    Thank you

    Easy, on the shared folders root folder only give them 'read' or 'traverse folder' but on the the folder inside the shared folders root folder give them 'change/delete'. That means they can change anything inside those folders but not create any folders at the shared folders root level.

  • Prevent user from selecting quiz answer

    I'm using CP5 and my project is predominantly quiz questions.  Each question allows infinite attempts and uses advanced answer options to 'show' audio feedback for all answers submitted (wrong and correct).
    Also, each quiz has an audio introduction.
    When a user enters a quiz slide, the audio intro plays, but the user is able to submit an answer. If they do this, the audio feedback for the question plays at the same time as the introduction audio. Similarly, if the user submits a wrong answer, then quickly submits another answer, the 2 feedback audios play concurrently.
    So, things are working as I expect them to, but it's not ideal and is a little sloppy if a user doesn't wait for audio to stop before doing their thing.
    Is there a way to prevent users from submitting answers while either the intro to the slide is playing or while another answer feedback is playing?
    I haven't been able to figure out how to do this with advanced actions.
    I also considered putting invisible, dead buttons or captions over the answers that would block a user's click until the audio is done, but there's no way that I know to put anything in front of a quiz object.
    Thanks in advance!

    Hi Guido,
    please state your specific question in the posting as well, as after quickly reading it I had to stop and read a second time to really get the meaning of it.
    So you want to know how you can prevent change of selection in certain cases:
    For simple validation a client-side javascript would be easy, this way you can even prevent the submit-event from being fired.
    For more complex validation you need the server, right. But I would not use the iterator method for this.
    The "best" place for input validation would be do_handle_data, which is executed before do_handle_event, where you can react on the incoming row-selection-event and the validation result.
    Regards,
    Max

  • How to prevent users from saving and emailing intranet documents externally

    Someone in our company needs to upload a pdf to our sharepoint intranet site for internal-only use. How can I prevent users from downloading it and emailing it externally?
    I mean, a user could screenshot it I guess, but I need to give management a due diligence answer.

    You would need to look into a reverse proxy/firewall that had the ability to block access based on content. This isn't something you can accomplish out of the box with SharePoint (even with AD RMS).
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to prevent user from creating jobs

    Hi,
    we need to prevent user from creating jobs on a dev enviorement. It's a 10.2.0.4 database standard on linux 64bits.
    Their schema has only connect and resource roles. Is there a way to prevent them from creating jobs? In 11g it's the CREATE JOB permission, but in 10g i'm not sure how can i do this.
    Thanks for any ideas!

    On 10g it's probably the CREATE JOB as well.
    http://www.oracle.com/pls/db102/homepage
    Alternatively you could:
    alter system set job_queue_processes=0
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams089.htm#REFRN10077

  • How to prevent user from deactivating the adobe software

    I am working in a training center, We've got 20 machines here installed with Adobe CS3 production premium (not using network license). The problem now i foresee is the software deactivate problem, i found user can deactivate the adobe software even they dont have XP administrator rights.
    And what i know about activation of adobe software is that there is a limit of activation count of 30 tries and after that i have to call the adobe technical support for help.
    Is there any way that i can prevent user from deactivating the software in terms of registry modification or what other kinds of method.
    Thanks
    Ivan

    If you have 20 machines I assume you have a volume license, which does not require de/activation anyway.
    If you have 20 separate licences... well, the only thing I can think of is to block the Adobe Activation domains of adobe.com through the firewall of your network. You should probably contact Adobe directly for more specific info.

  • How to prevent users from running PRC: Transaction Import from WebADI form?

    Hi,
    We are 12.1.3 and trying to create a workflow to approve Project transactions coming through web ADI before they become effective. To this end, we want to prevent users from running the PRC: Transaction Import from the Web ADI.
    I know that if the checkbox Automatically run transaction import is not checked, the program does not run. But we want to hide this checkbox and not allow the possibility that the program could get triggered.
    To this end, we updated the BNE_INTEGRATORS_B with source='C'. This allows you to edit the integrator from Desktop Integration Manager.
    UPDATE BNE_INTEGRATORS_B SET SOURCE ='C' WHERE  INTEGRATOR_CODE ='PAXTTRXB'
    In the 4th step, where the value for Uploader Parameters is set, we have set boolean value to No. These are the fields on the page:
    Parameter Name: bne:import
    Display Name: Start Transaction Upload
    Data Type: Boolean
    Category: Field
    Default Value: Boolean Flag: No
    Description: start Transaction Import Concurrent Request
    Display Options: Displayed: Unchecked
    Display Options: Enabled: Checked
    Display Options: Required: Checked
    Prompt Left: Automatically submit Transaction import
    Display Type: Check Box
    Maximun Size: 100
    Display Size:100
    Now the checkbox is not appearing for the user to check it, But the program is automatically running when you hit Upload in the WebADI. 

    Hi ,
    Try removing the PRC: Transaction Import Program from the request group for the responsibility used by customers to submit the WebADI and then check if the program launches.
    Regards,
    Raghavan

  • CE10 how to prevent user from view hostrical instance

    hi,
    We are currently using CE10. One of our user used search functionality in enterprise to search for reports start with 'employee' and it came  back with all the crystal reports on the server that  started with employees, even the one the user doesn't have access to.  My greatest concern about this is that users can view historical instance and it is sensitive data.  Does anybody know whether or not this is a bug in CE10?  Is there a patch/fix for this?  Is there any configuration change that I can make to
    prevent users from being able search all the reports on the server rather just their own reports?  Any help is greatly appreciated.
    Regards,
    Susan

    hi,
    I have an EVERYONE group with limited access(view object), and EVERYONE group is added to each folder with NO ACCESS.  If I revoke view object(explicitly denied) privilege from EVERYONE group, do I still need to remove EVERYONE group from each folder?  When I'm at folder level in CMC, I see EVERYONE GROUP added, but when I tried to remove the EVERYONE GROUP, the EVERYONE group is not an option for removal.  What am I missing?
    Thanks for your help!
    Regards,
    Susan Johnson

  • How to prevent users from entering '+' or '0' in front of country code in the phone number field?

    Requirement:
    How can I prevent guest users from entering '+' sign or '0' in front of country-code in the visitor phone number field during self registration?
    Few SMS service providers are not looking for '+' sign or '0' or '00' in front of the international phone numbers to trigger the sms. Providing these values in front of country code during self-registration may fail to deliver the sms to recipient.
    Solution:
    Using a simple regular expression, you can validate the entered phone number during the guest registration. 
    The below regular expression will help you to validate the phone number and allows to register only  when the phone number is not staring with '+' or '0'. 
    ^[1-9][0-9](\d{7}|\d{8}|\d{9}|\d{10}|\d{11}|\d{12})$
    It also performs the below validations.
    only numbers are allowed.
    first digit of the entered phone number should be 1 to 9, so '+' or '0' is not allowed. 
    numbers from 0 to 9 are allowed from the second digit.
    also validates phone number length, the length of the phone number should be 9 to 14.
    Configuration:
    To add the above regex in the visitor_phone number filed, please navigate to ClearPass Guest >> Configuration >> (Pages)Guest Self-Registration >> select the self-registration page and go to Edit >> Register Page >> Form >>  select the filed visitor_phone and set the Validator to " ISRegexMatch" and enter the above regex in the Validator Argument filed as shown below.
    Note:  Edit the Validation Error as per your requirement.
    Verification
    Adding the given regex will validate the phone number and prevent the guest user from registering the phone number starts with '+' or '0'.
    Please find below the sample outputs for your reference.
    Result when phone number starts with '+' or '0'.
    Successful registration.

    Is this a Mac Preview issue?

  • Preventing user from selecting item in JTree

    Does anyone know how to prevent the user from being able to change the cell in the tree that is currently selected?
    I have a JTree that the user can select items from but I want them to be able to click on a button and no longer be able to select an item in the tree until another button is pressed.
    Any ideas?

    hi
    i hope the code below helps ur purpose
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.tree.*;
    public class Frame1 extends JFrame {
    JPanel contentPane;
    BorderLayout borderLayout1 = new BorderLayout();
    JPanel jPanel1 = new JPanel();
    JButton jButton1 = new JButton();
    JButton jButton2 = new JButton();
    MyTree jTree1 = new MyTree();
    boolean blnSelection = true;
    /**Construct the frame*/
    public Frame1() {
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    /**Component initialization*/
    private void jbInit() throws Exception {
    //setIconImage(Toolkit.getDefaultToolkit().createImage(Frame1.class.getResource("[Your Icon]")));
    contentPane = (JPanel) this.getContentPane();
    contentPane.setLayout(borderLayout1);
    this.setSize(new Dimension(466, 319));
    this.setTitle("Frame Title");
    jButton1.setText("jButton1");
    jButton1.setBounds(new Rectangle(83, 254, 79, 27));
    jButton1.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    jButton1_actionPerformed(e);
    jPanel1.setLayout(null);
    jButton2.setText("jButton2");
    jButton2.setBounds(new Rectangle(177, 256, 89, 23));
    jButton2.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    jButton2_actionPerformed(e);
    jTree1.setBounds(new Rectangle(93, 30, 252, 195));
    contentPane.add(jPanel1, BorderLayout.CENTER);
    jPanel1.add(jButton1, null);
    jPanel1.add(jButton2, null);
    jPanel1.add(jTree1, null);
    /**Overridden so we can exit when window is closed*/
    protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    System.exit(0);
    void jButton1_actionPerformed(ActionEvent e) {
    blnSelection = false;
         jTree1.setSelectionPath(null);
    void jButton2_actionPerformed(ActionEvent e) {
    blnSelection = true;
    class MyTree extends JTree implements TreeSelectionListener
         public MyTree()
              super();
              init();
         private void init()
    this.getSelectionModel().setSelectionModeTreeSelectionModel.SINGLE_TREE_SELECTION);
              this.addTreeSelectionListener(this);
              this.setEditable(false);
         DefaultMutableTreeNode selectedNode = null;
         public void valueChanged(TreeSelectionEvent evt)
    if(!blnSelection)
         this.setSelectionPath(null);
         else
         TreePath tpSelectedTreePath = evt.getNewLeadSelectionPath();
         this.setSelectionPath(tpSelectedTreePath);
    cheers

  • [E2013][C#] How to prevent user from updating its own events on Exchange

    Hi everybody,
    I hope you can help me. I have a system based on Exchange / Outlook 2013, and I would like to put on user's calendar some events that they can't delete nor update. I have tried to create appointments using
    Exchange EWS with an administrator account, but the problem is that those events can be deleted or updated by users. This is because the events are on user's own calendar, so usually user can update them. 
    How can I have "some" events to be readonly for a user, but must be visibile in its own calendar? (No other calendar overlay). Is there a way to throw an exception or something similar on Exchange Server when a user modify those events
    (some custom property must identify them, of course)? I have looked at transport agents, but I haven't found any example for managing calendar items server side. 
    I cannot use only an Outlook plugin because users could connect to exchange with smartphone, and they could update appointments from there. I have to prevent updating (from Outlook and from smartphone, basically from everywhere except for
    an administrator user) for some events (programmatically created by EWS, for example) which are in user's calendar. Can you help me?
    Thanks, 
    Antonio

    Hi Antonio,
    bad news for you: It's impossible. A User always has full control over all items in his or her mailbox (including his calendar), no matter what you do.
    If it's important enough to you, you can write a service that monitors all those specific appointments and undos all changes the user applies to them (it won't keep the user from changing the Appointment, but it will not have effect for long. Your users
    may feel a bit upset about that though).
    Cheers,
    Fred
    There's no place like 127.0.0.1

  • How to prevent users from creating transactional problems?

    Dear Sirs...
    Using JDeveloper 10.1.2 and ADF UIX technology. If i created a web application that contains many pages. Assume the application contains pages A,B,C,D.
    The end user should access the pages A then B then C then D to get the transaction executed and commited correctly.
    the problem is:
    1- if a user navigates from A to B to C then he press the Back button to A then he commits the transaction, the data would be stored in correctly.
    2- if page C requires some preparations in page B (initalization of session variables) and the user enters page A then he changes the URL to C, then this would cause inproper execution of application and so the data would be stored incorrectly.
    so how can i prevent the user from pressing the back button of the browser (which i do not think is possible) or how can i prevent him from making any errors by inproper page navigation?
    thanks for any help in advance and best regards

    I really don't know if this is the correct way of doing it, but we prevent navigation directly to any page within our application if the HTTP Referer header is null. If it's null, we redirect to a page that says the user should use the navigation buttons provided and not enter the page via bookmarks, history, or direct navigation via a typed in URL.

  • How to prevent user from "normal" navigation?

    Hi everyone,
    I have a PDF with a lot of pages, which are connect through Links (It's an export from MS Visio).
    I now want all the users to keep navigating through the links and prevent accidental navigation through the "normal" way (Arrow-Keys, Mouse-Scroll, etcs...) as much as possible.
    For this I have three ideas:
    "Force" Fullscreenmode: Here I can prevent from advancing in pages by clickAdvances=false. However I think it's not possible to prevent page changes by mouse-scroll or key-press.
    Using Layers: I have read, that it is possible to show/hide layers on demand with js. But I don't know how this can be done. And I would have to change the links to js-function showing the needed layer...
    Loading/Deleting Pages: I could load and delete Pages on demand. This is probably slow and i would need two pdf files.
    Does anyone knows something that could help me to solve this problem?
    Cheers, Holger.

    1. Not possible (except if the additional method described below is used).
    2. This is possible, but it requires setting up the layers and then a system of buttons and scripts to show/hide them.
    3. Also possible, but much more complicated than using layers.
    Another option is to use a script to prevent the user from entering a page, unless its done via a button.
    However, all of these methods have their disadvantages and can be very annoying for the users. You should really think if you want to implement this feature...

  • How to prevent users from taking print through ME23N

    Hi Everyone,
    Please guide me for the following query:
    How can we restrict users from taking print through ME23N as through print preview in ME23N user is provided an option of taking print of the document.
    Please guide with authorization object information.
    Please guide.
    Thanks and Regards

    Hi Dear,
                     Consult with ur BASIS person.he can help u ........
    thanks

  • How to prevent users from customizing KMs?

    Hi,
    I have users with CONNECT and DESIGNER profiles assigned to. How to drop out "customize KMs" rights?
    Thanks

    Is there a way to stop users from having the ability to create/edit knowledge modules? I would like to separate the role of creating and maintaining KM's from developers that move data.
    Troy

Maybe you are looking for

  • Interface Problems: DBA = Data Pump = Export Jobs (Job Name)

    Hello Folks, I need your help in troubleshooting an SQL Developer interface problem. DBA => Data Pump => Export Jobs (Job Name) => Data Pump Export => Job Scheduler (Step): -a- Job Name and Job Description fields are not visible. Well the fields are

  • I can't display  a PhotoAlbum  Demo

    i have installed oracle9i database in windows2000 server and i would like display theexample demo PhotoAlbumServlet.I performe all the instruction in read-me(classpath ,path,...) .I execute some examples that not use intermedia and database its good,

  • Toshiba sattelite

    When I bought this laptop it said "The hard drive in this unit has been wiped of all previous data. No Operating System is installed or included". when I try instaling windows xp pro i get a error message that said hard drive driver missing or not po

  • Doubt on select statment

    Hi all, I am using this particular syntax.. i do not have test data to test it... can anyone tell me if the syntax below is right way to code...      SELECT asktx UP TO 1 ROWS        FROM asmdt        INTO gv_asktx        FOR ALL ENTRIES IN lt_esll  

  • Flash 8 login showing strange behaviour

    I am developing a Flash 8 login for my website but the problem is once loaded I fill in my credentials and press login.... It only recieves the password and not the username (alert box used to show this) and once first attempt is over I try again and