How to set a custom MediaSize in Java 1.4 Printing

Helo, I need to set the paper size to 216mm x 93mm. I used the method
MediaSize.findMedia(int x, int y, int units) but i returned null. How do i set a new MediaSizeName or anything else that could resolve my problem??

I have the same doubt with you. there is not person to answer this question?

Similar Messages

  • How to set a custom column in a workflow task.

    Hello,
    I'm looking for some assistance a bit with how to set a custom column in a Workflow Task.
    I have a List Workflow that starts when an item is created in a list. The workflow, platform type SharePoint 2013, starts a new task, Task1, with Content Type 1. This Content Type has a custom column called Age. Once the Task1 is completed a new task, Task2,
    with Content Type 2, starts and has the same column Age, as Task1.
    How can I populate the Age column in Task2 with the content of the Age column in Task1?
    Since I start the task by running "Assign a task to ..." Action I was thinking to copy the Age column from the Task1 to the list item that started Task1, which has a column Age as well, and then in Task2 to start another workflow - which is associated
    with the Content Type 2,  that would try to read the Age column from the list item that started Task2, which was set once Task1 was competed - I know it's complex but this is how I was thinking. 
    The problem with this approach is that I can't get a reference to the list item that started Task2 to read the Age from the list item.
    Is there a better approach? I use SharePoint Designer 2013 to design all this.
    Any assistance is appreciated.
    Thank you.

    Hello Sebastian,
    you can get the Age column from Task 1 and then update the Task 2 Age column with that value. I am not sure why you want to run another workflow on Task 2.
    You can perform below steps to set Age column from Task 1 to Task 2.
    1.  Create Task 1 using Assign a task , wait till the task is completed.
    2. Get the Age column value based on Task 1 once the task is completed.
    3.Create Task 2 using Assign a task ,  uncheck wait till the task is completed option.
    4. Update the Task 2 with Age column in Task1.
    5. Use Wait for the field to equal value , check for Task Status is completed or not.
    >>The problem with this approach is that I can't get a reference to the list item that started Task2 to read the Age from the list item.
    you can get the related item from task list item to get the main list item.
    Other option is, Use Javascript and CSOM  in task edit form to get the Age column from Task1 and prepoluate the Age value when Task2 is opened.
    Hope this helps.
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • HT201684 In Yosemite this no longer works, has anyone figured this out? How to set a custom default umask for all applications?

    In Yosemite this no longer works, has anyone figured this out? How to set a custom default umask for all applications?
    I've tried everything to get a custom umask set for all apps. It just seems impossible...
    Is there a replacement for launchd-user.conf?

    Please file a bug report: https://bugreport.apple.com
    I am sure this is something that got lost, like environment variables, in the Yosemite/iOS merger.

  • How to set up custom ring tone for a specific contact?

    If someone can guide me how to set up custom ring tone already downloaded from iTunes
    of a specifice  contact? Thanks.

    Tap contacts, select the contact, click edit,  go to ringtone, select ringtone

  • How to set a customer type when submitting a form

    Hello! How do I set a customer's 'Customer Type' when they submit a form? In other words, I have a form on my website and if a user completes and submits that form, I would like that user to be given a specific Customer Type.
    TIA

    You cant yet.
    Soon though.
    The output for these via liquid will be available in the release later today and hopefully the form aspects will be in the new future.

  • How to set one custom SQL to blank

    I would like to manage the update of the objects of a given descriptor in the code of an "about to update" method (toplink event).
    At the same time I would like the default update statement does not occur any more. I was thinking about setting the update sql query in my descriptor, using workbench (custom sql section). But what should I write down here.
    Please advice,
    Chris

    This is fairly advanced; you could do it a few different ways:
    1 - Set the custom update SQL to some no-op operation, i.e. "Delete from Dual where 1 = 2".
    2 - Use a redirect UpdateObjectQuery for the descriptor's update operation.
    3 - Use a custom query subclass for the descriptor's update operation.
    i.e. something similar to,
    descriptor.getQueryManager().setUpdateQuery(new UpdateObjectQuery() {
    public void executeCommit() {
    // custom update code here.
    public void executeCommitWithChangeSet() {
    executeCommit();
    4 - Use a custom call on a descriptor's update operation.
    What are you doing instead of the update?

  • How to set a customized search results template for all users

    Hi.
    I know the customized search results views are stored in a file called pne_portal.hda that resides on every user's subfolder in data/users/profiles/...
    Is there a way to set a customized search results template for all users? If it's impossible, is there a way to modify the Headline view? I'm not able to find the resource or template where this view is.
    Thanks in advance.

    I wasn't able to understand what was meant by this post. Therefore, I modified the standard template HeadLine View.
    Columns for this template are defined in the include slim_search_result_table_header_setup (in std_page.htm).
    Here is the modification of the code:
    <$if customTemplateId and not (baseTemplateId like customTemplateId)$>
              <$columnsString = utGetValue("customlisttemplates/" & strLower(customTemplateId), "columns")$>          
              <!-- Modify START by Oracle-->
         <$else$>
    <!-- here add default fields -->
              <$columnsString="dDocName,dDocTitle,dInDate,dDocAuthor"$>
    <!-- here add your custom fields -->
              <$columnsString=columnsString&",xComment"$>
              <!-- Modify END by Oracle-->
         <$endif$>

  • Blank screen on load - how to set a custom thumbnail

    I work at an academic library where we create a lot of tutorials, which we put on our website and on YouTube and Vimeo. With previous versions of Captivate (before Captivate 6), before you hit play, you would see the initial slide. Now, the screen is just blank until you hit play. On YouTube and Vimeo you can set a custom thumbnail that shows before you hit play; is there a way to do this within Captivate (we're now on version 8).
    I'm not talking about the preloader image. I tried adding an image of the first slide as a preloader image, but it shows only while the video is loading, and once it's loaded, the screen goes blank again.
    Thanks!

    Hi djraven911,
    Welcome to the HP Forums, I hope you enjoy your experience!
    I will be happy to help you; however I can't help but wonder, is this a prank?
    I noticed you posted on April 1st, coincidentally April Fools.
    In any case, HP does not have any printer's that support printing on toilet paper.
    As for your second inquiry, I would suggest the Officejet 8600, the XL cartridge will print approximately 2300 pages.
    It supports many media types, but not toilet paper.
    Hope this helps.
    Thank you for posting on the HP Forums. Have a nice day!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • How to set HP OfficeJet 4500 used as a network printer to print in black not color as a default.

    I have my HP officejet printer set as a network printer but it prints color when I had initially set it for B&W as my default during set-up
    How do I set my HP OfficeJet 4500 used as a network printer to print in black not color as the default.
    Thanks,
    Bob

    OK, go to Start > Control Panel > Printers.  Right click the printer in question and choose Printing Preferences.  Set it the way you want, then click OK. 
    That should set the defaults for all programs using the printer.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • How to set the BARCODE width and length for label printing..

    Hi All,
    How to set the Code 39 barcode label format in the sizxe of 0.20" * 1.4". By default while printing barcode size exceeds my current requirement. Please let me know to customize the size of barcode labels.
    Thanks.

    I don't know what you mean by "Code 39" because my Output Designer software doesn't offer that barcode (or do you mean "code 3 of 9?). In any case, are you trying to control the size of the text (which is what I think of when you refer to "label")? If you are, then just change the font & size. If you are wanting to modify the physical characteristics of the barcode itself (height & length for a certain number of characters) then you are probably out of luck. Or at least in for some trial & error.
    There are a series of "barcode.xxx" files in the 'config' folder where Output Designer was installed to. These are text files that contain the physical characteristics of the various barcodes for various printers. The parameters that you would be interested in is the height and width of the bars (black & white). For example, a barcode might be defined as .400 high with narrow bars 3 "dots" wide, wide bars 9 "dots" wide and white space the same or different. Presumably changing these values would affect the generated barcode. For example, in this example the wide bars are 3 times the width of the narrow bars so I would assume that relationship would have to remain. To make the resulting barcode shorter you would then use 2 for the narrow and 6 for the wide.
    You would have to make the change in the file(s) that would be used for your printer(s).
    There are four width values for each of the parameters. Most of the barcodes only use 2 but some have 4. I'm assuming that when there are 4, like in "4 8 12 16", that the barcode definition has 4 different widths of bars and/or spaces.
    There is no guarantee that the scanning hardware & software will "see" and interpret the resulting barcode correctly.

  • How to set the spool retention period till 30 days(Printer Properties).

    Hi SAP Experts
    I need to setup a job which creates a spool. I want to set the spool retention period till 30 days(Printer Properties). But I have the option of keeping it only for 8 days or Do Not Delete at all. Can you please let me know how can I setup a job which creates a spool which wil be retained for 30 days and then will automatically get deleted?
    Advanced Thanks
    Thanks & Regards,
    Kishore.

    Hello Kishore,
    I can understand why you dont want to change the variant.
    However may be a slight change in the variant might help your cause though I am not sure whether you will like this suggestion or not.
    Create a dummy output device type to which all spools created for this report need to be assigned.
    Once this is done  make a small change in the variant for the field Output device in such a manner that all the spools belonging to this printer/output device are not deleted.
    Then create a new variant for this output device ensuring that only spools belonging to this output device and older than 29 or 30 days  are deleted.
    While this will  ensure that normal spool requests are deleted these ones are not.
    Really dont if this solution is acceptable or not.
    Regards.
    Ruchit.

  • How to set SubmitButtonBean's attribute in Java

    I want create
    <submitButton name="Buttom's name" ctrl:event="push"/>
    in Java:
    SubmitButtonBean button = new SubmitButtonBean("Buttom's name");
    and I need set attribute "ctrl:event". I tried this:
    oracle.cabo.ui.AttributeKey event = AttributeKey.getAttributeKey("ctrl:event");
    button.setAttributeValue(event,"push");
    No event when I click button.
    Could you help me, how I can do this? Maybe I must use javascript to run uix event, is it possible?

    as an example&lt;submitButton formName="testForm" event="submitPage" text="Submit" /&gt;in the event handlers &lt;handlers&gt;
        &lt;event name="submitPage" &gt;
          &lt;method class="com.test.EventHandler" method="handleControlSubmitEvent" /&gt;
        &lt;!-- Add EventHandlers (&lt;event&gt; elements) here  --&gt;
        &lt;/event&gt;
      &lt;/handlers&gt;in the EventHandler.java u should be able to get the event name with this
    public static EventResult handleControlSubmitEvent( BajaContext context,
                                                     Page page,
                                                     PageEvent event ) {
        String eventName = event.getName();
    }regards,
    raj.

  • How to set my own icon for java frame ??

    I create a java class it extends JFrame. I want to change default icon on the left_top corner and using my own icon. It is a --.gif file. How to do it. When I try to modify it using setIconImage( Image image), I met problem. I cann't new Image("--.gif"). I don't know how to create a Image object using a string(file name). I try to use ImageIcon , but it is not image obj. Thanks. Gary

    According to the documentation setIconImage does the following: Sets the image to be displayed in the minimized icon for this frame. Not all platforms support the concept of minimizing a window.
    So,
    1) It does not change the icon in the top-left corner
    2) It does not work on all platforms.

  • How to set up older version of Java JDK?

    I am a Java Developer, and I recently bought a Mac.  I also just started working for a Client who is using JDK 1.6.0_23, and this is not going to change.  The code fails to compile when running through the latest Java 1.6 JDK, so I REALLY need to download and set up JDK 1.6.0_23.  Is this possible?  If I can't get this working, I will unfortunately have to use the Windows machine that the Client gave me.
    Thanks in advance.

    I removed the old program.
    I am using this line in my autoexec.bat
    path = c:\jdk1.3.1_01\bin
    I understand that I don't need to set any classpath. If I am wrong, would this line be correct ?
    classpath = %classpath%;c:\jdk1.3.1_0\bin;c:\jdk1.3.1_01\lib\tools.jar

  • How to set path to run a Java program?

    my pc os is win2000 service pack 3.
    cpu is celoron 667mhz
    256 pc133 sdram
    i have done the setting b4 run a java program but no any effect.
    setting as below:
    set path=c:\j2sdk1.4.1_01\bin
    set classpath=c:\j2sdk1.4.1_01\lib
    my java file is store in C:\Java, file name is HelloWorld.java, so when i type:
    C:\>
    C:\>Java\javac HelloWorld.java
    (the screen show me : java\javac not internal or external........")
    and i try again as follow:
    C:>
    C:>\Java>javac HelloWorld.java
    (the screen show : Exception in thread "main" java.lang.NoClassDefFoundError:HelloWorld/java)
    i cant do anymore, who can help me?

    you need to put the CLASSPATH to dir: c:\j2sdk1.4.1_01
    and also to the directory you are working
    For example, you are working in "C:\Myclasses". You need to put:
    set CLASSPATH = C:\j2sk1.4.1_01;C:\Myclasses;
    if you don't put your working directory, java doesn't find your classes
    Try it and luck!

Maybe you are looking for

  • In  sale sorder based production order can i consume unrestirced stock

    HI,      i am creating Production order using co08 with respect to sales order.the ( bom items)components to be cosumend for that production order should be sales order stock compulsory. if i want to consume against sales order how can i consume stoc

  • Need help to write a query for Update statement with  join

    Hi there, The following update statement gives me error as the given table in set statement is invalid. But its the right table . Is the statement correct? Please help . update (        select distinct(vpproadside.VEHICLE_CRED_OVERRIDE.vin)          

  • IPod doesn't recognise the library it's synced with

    I'm not sure since when precisely, but very recently my iPod has stopped being synced with my Mac. "Sync Music", for example, is no longer selected, and when I do select it, I get warned that everything will be removed from the iPod and replaced with

  • Drill down report without using heirarchies in OBIEE11g

    Hi, Can we create multiple column drill down report without using hierarchies in OBIEE11g? Kindly let me know the solution. Thank you! -Harshith

  • Syncing iPod freezes iTunes

    I've had my 80GB iPod classic for almost a year. In that time it has blanked itself of all music upwards of 10 times, been restored to it factory settings the same amount of times and totally refused to load video and games. All this I could deal wit