How To register fonts at runtime in flex 4 ?

Hi Guys
I stuck in a problem .Actually i want to register fonts at runtime here is sample of code i am using :
private function loadFont(url:String):void{
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, fontLoaded);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);        
            loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
            loader.addEventListener(IOErrorEvent.DISK_ERROR, ioDiskHandler);
            loader.addEventListener(IOErrorEvent.NETWORK_ERROR, ioNetworkHandler);
            loader.addEventListener(IOErrorEvent.VERIFY_ERROR, ioVerifyHandler);
            loader.load(new URLRequest(url));
//===============================================================================
// funtion fontLoaded :: called after font loaded by loadewr class
private function fontLoaded(evt:Event):void
var fontLib:Class
//trace("loaded " + "<<>> "+fontCounter);
//FlexGlobals.topLevelApplication.fontArr[fontCounter];
if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "Arial") {
fontLib =  evt.target.applicationDomain.getDefinition("fontArial") as Class;
//Font.registerFont(fontLib.Arial_2);
Font.registerFont(fontLib._Arial);
Font.registerFont(fontLib._Arial_bold);
Font.registerFont(fontLib._Arial_italic);
Font.registerFont(fontLib._Arial_bolditalic);
Font.enumerateFonts();
} else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "A Little Pot") {
fontLib =  evt.target.applicationDomain.getDefinition("fontAlittlePot") as Class;
Font.registerFont(fontLib._Alittlepot);
Font.enumerateFonts();
} else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "Book Antiqua") {
fontLib =  evt.target.applicationDomain.getDefinition("fontBookAntiqua") as Class;
//Font.registerFont(fontLib.Arial_2);
Font.registerFont(fontLib._BookAntiqua);
Font.registerFont(fontLib._BookAntiqua_bold);
Font.registerFont(fontLib._BookAntiqua_italic);
Font.registerFont(fontLib._BookAntiqua_bolditalic);
Font.enumerateFonts();
} else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "Fine Hand LET") {
fontLib =  evt.target.applicationDomain.getDefinition("fontFineHand") as Class;
Font.registerFont(fontLib._FineHand);
Font.enumerateFonts();
} else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "NewBskvll BT") {
fontLib =  evt.target.applicationDomain.getDefinitionByName("fontNewBaskerVille") as Class;
Font.registerFont(fontLib._NewBaskervilleBt);
Font.registerFont(fontLib._NewBaskervilleBt_bold);
Font.registerFont(fontLib._NewBaskervilleBt_italic);
Font.registerFont(fontLib._NewBaskervilleBt_bolditalic);
Font.enumerateFonts();
} else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "Segoe Print") {
fontLib =  evt.target.applicationDomain.getDefinition("fontSegoePrint") as Class;
Font.registerFont(fontLib._SegoePrint);
Font.registerFont(fontLib._SegoePrint_bold);
Font.enumerateFonts();
} else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "SF Burlington Script SC") {
fontLib =  evt.target.applicationDomain.getDefinition("fontSFBurlingtonScriptSC") as Class;
Font.registerFont(fontLib._SFBurlingtonScriptSC);
Font.registerFont(fontLib._SFBurlingtonScriptSC_bold);
Font.registerFont(fontLib._SFBurlingtonScriptSC_italic);
Font.registerFont(fontLib._SFBurlingtonScriptSC_bolditalic);
Font.enumerateFonts();
} else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "Pica") {
fontLib =  evt.target.applicationDomain.getDefinition("fontPica") as Class;
Font.registerFont(fontLib._Pica);
Font.enumerateFonts();
} else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "Signature") {
fontLib =  evt.target.applicationDomain.getDefinition("fontSignature") as Class;
Font.registerFont(fontLib._Signature);
Font.enumerateFonts();
} else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "Verdana") {
fontLib =  evt.target.applicationDomain.getDefinition("fontVerdana") as Class;
Font.registerFont(fontLib._Verdana);
Font.registerFont(fontLib._Verdana_bold);
Font.registerFont(fontLib._Verdana_italic);
Font.registerFont(fontLib._Verdana_bolditalic);
Font.enumerateFonts();
} else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "SFBurlingtonScript") {
fontLib =  evt.target.applicationDomain.getDefinition("fontSFBurlingtonScript") as Class;
Font.registerFont(fontLib._SFBurlingtonScript);
Font.registerFont(fontLib._SFBurlingtonScript_bold);
Font.registerFont(fontLib._SFBurlingtonScript_italic);
Font.registerFont(fontLib._SFBurlingtonScript_bolditalic);
Font.enumerateFonts();
else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "Paper Cuts") {
fontLib =  evt.target.applicationDomain.getDefinition("fontPapercuts") as Class;
Font.registerFont(fontLib._Papercuts);
Font.enumerateFonts();
else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "Sansation") {
fontLib =  evt.target.applicationDomain.getDefinition("fontSansation") as Class;
Font.registerFont(fontLib._Sansation);
Font.registerFont(fontLib._Sansation_bold);
Font.enumerateFonts();
else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "Times New Roman") {
fontLib =  evt.target.applicationDomain.getDefinition("fontTimes") as Class;
Font.registerFont(fontLib._Times);
Font.registerFont(fontLib._Times_bold);
Font.registerFont(fontLib._Times_italic);
Font.registerFont(fontLib._Times_bolditalic);
Font.enumerateFonts();
else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "Handserif") {
fontLib =  evt.target.applicationDomain.getDefinition("fontHanSrf") as Class;
Font.registerFont(fontLib._Handserif);
Font.enumerateFonts();
else if(FlexGlobals.topLevelApplication.fontArr[fontCounter].label == "WC RoughTrad") {
fontLib =  evt.target.applicationDomain.getDefinition("fontWCRoughTrad") as Class;
Font.registerFont(fontLib._WCRoughTrad);
Font.enumerateFonts();
//var xmlNode:XML = new XML("<font name='"+ FlexGlobals.topLevelApplication.fontArr[fontCounter].label +"' load='true'/>")
//FlexGlobals.topLevelApplication.fontLoadStatusXML.appendChild(xmlNode);
if(fontCounter < totalFonts-1) {
fontCounter++;
//FlexGlobals.topLevelApplication.taSetText.text += "\nloading "+ FlexGlobals.topLevelApplication.fontArr[fontCounter].label;
this.loadFont(FlexGlobals.topLevelApplication.fontArr[fontCounter].path);
It is working in flex 3 but not working in flex 4 .. Need help ..
Regards
Mohit

Hi Flex harUI
can u elaborate a bit more regarding . i didnt understand .actually i am using richeditable text area instead of textarea . this is the only difference apart from flex 3 and flex 4.
Regards
Mohit Verma

Similar Messages

  • HELP: How to set WSDL at runtime (in Flex 4)?

    Hi,
    My flex application needs to communicate with a Web Service whose location is not known until after deployment; the service's location is known and static during development.  This means that my application should be able to communicate with the service whose wsdl url will be different from the "wsdl" value embedded in the Flex-generated code. 
    I can compute the wsdl url of the deployed service in the application at runtime.  However, I am unable to get the application to talk to the service running at the new location.
    Specifically, in application_creationCompleteHandler(), I do:
    var wsdl:String = hostString+"axis2/myService?wsdl";
    myWSvc = new MyWSvc(wsdl);
    In the constructor of MyWSvc(), which is the subclass of the auto-generated class for the My Web Service, I do:
    public function MyWSvc(runtimeWSDL:String=null) {
         super();
         if (runtimeWSDL != null) {
              wsdl = runtimeWSDL;
              _serviceControl.loadWSDL(wsdl);
              //model_internal::loadWSDLIfNecessary();
    This does not work; the auto-generated code always uses the WSDL value embedded in the auto-generated class for the My Web Service. 
    I would greatly appreciate your expert help in solving or getting around this issue.
    Much thanks,
    --Hyong

    Here is what I did.
    I set the settings for each environment in separate settings.xml files in SVN under seperated directories (dev,qa,prod).
    Here is the syntax of the settings.xml files. Each will have its respective URLs.
    <flex-config>
    <compiler>
        <define>
            <name>CONFIG::webServiceURL</name>
            <value>'http://www.xxxxxx.com/webservice_test/echocf7remote.cfc?wsdl'</value>
        </define>
    </compiler>
    </flex-config>
    The deploy.sh script asks for the environment value (dev,qa or prod) among other params, and then passes that in to the Ant like this (note there are extra params for our setup):
    ant -v -f build.xml -Dprojectname=${PROJECTNAME} -Dbranchname=${BRANCHNAME} -Dversion=${VERSION} -Denvironment=${ENV} -Dbuilddir=${BUILD_DIR} >> ${LOG_FILE}
    These params are used inside the build.xml
    After the Ant script checks the code out from SVN in to a staging directory, we load the proper settings.xml from the proper directory based on the user specified environment (in the deploy.sh).
    <load-config filename="${staging.conf}/${settings.conf}/${environment}/settings.xml"/>
    ${staging.conf} is defined in the build.properties and ${environment} is passed in the Ant call in the deploy.sh based on user provided input.
    So if the user specifies 'dev' during the deploy.sh execution, then we would load the /build/staging/config/dev/settings.xml
    Then in the pre-generates stabs I set the var at the top:
    private static const wsdlURL:String = CONFIG::webServiceURL;
    and modify the code bellow from hardcoded:
    //wsdl = "http://www.xxxxxx.com/webservice_test/echocf7remote.cfc?wsdl";
    to using the var:
    wsdl = wsdlURL;
    The nice thing is that all of the settings.xml 's are stored in the SVN and the correct version is used based on the environment provided by the user input during deployment script execution.
    Perhaps there is a more elegant way of doing this but this works and we already use Ant, SVN and a deployment shell script so it fits right in for us.

  • How to register created fonts in Java 5?

    Java 6 provides the registerFont(Font) method in GraphicsEnvironment to register fonts created using Font's createFont(int, InputStream) method. However, I need my application to work using Java 5.
    I looked in the Java 6 source code hoping to find the solution. In Java 6, GraphicsEnvironment's registerFont(Font) method calls a static method also entitled registerFont(Font) on the platform class sun.font.FontManager. Based on the code in sun.font.FontManager, I created a class for use in my application which only contains the variables and methods necessary for the registerFont(Font) method.
    There is only one problem: the registerFont(Font) method in sun.font.FontManager relies on the use of a native+ method to derive a Font2D object from the created font. The method is: public static native Font2D getFont2D(Font). Although my program compiles, I get the following error message at runtime:
    Exception in thread "Thread-3" java.lang.UnsatisfiedLinkError: getFont2D
         at MyFontManager.getFont2D(Native Method)
         at MyFontManager.registerFont(MyFontManager.java:105)
         at java.lang.Thread.run(Unknown Source)
    How do I derive a Font2D object from a Font object?
    OR
    Using Java 5, how do I register a created font such that I can reference that font via its family name, as in the following lines of code (the Java 6 solution is crossed out)?
    this.simpleAttributeSet = new SimpleAttributeSet();
    try {
    InputStream inputStream = getClass().getResource("fonts/FONT.TTF").openStream();
    Font font = Font.createFont(Font.TRUETYPE_FONT, inputStream).deriveFont(Font.PLAIN, 25);
    inputStream.close();
    GraphicsEnvironment.getLocalGraphicsEnvironment().registerFont(font);
    MyFontManager.registerFont(font);
    StyleConstants.setFontFamily(this.simpleAttributeSet, font.getFamily());
    } catch (Exception exception) {
    System.err.println(exception);
    }

    Sure.
    My strategy was to create a class for use in my application which would only contain all the variables and methods necessary to execute the registerFont(Font) method in the Java 6 version of sun.font.FontManager. The registerFont(Font) method calls two static, native methods: isCreatedFont and getFont2D. Originally, I made the mistake of including these methods in the class I created. The solution: call these methods on sun.font.FontManager.
    The Java 5 version of sun.font.FontManager fortunately supports getFont2D, but does not support isCreatedFont. However, it is not necessary for my program to determine whether or not the font is a created font. Therefore, I replaced all instances of calls to isCreatedFont with the value true.
    NOTE: The solution works, but my font ended up looking worse than it did using Java 6 and I'm interested in learning why.

  • How can we display svg files in flex at runtime using FileReference? Actually we are trying to load

    how can we display svg files in flex at runtime using FileReference? Actually we are trying to load the svg file from the  local directory.

    This should give you the JRE version;
    System.out.println(System.getproperty("java.version"));
    and this should tell you where its running from;
    System.out.println(System.getProperty("java.home"));
    There are loads more system properties, check the JDK documentation for java.lang.System and look at the getProperties method which has a list.
    Stewart

  • How to register a created font in java 5?

    Java 6 provides the registerFont(Font) method in GraphicsEnvironment to register fonts created using Font's createFont(int, InputStream) method. However, I need my application to work using Java 5.
    I looked in the Java 6 source code hoping to find the solution. In Java 6, GraphicsEnvironment's registerFont(Font) method calls a static method also entitled registerFont(Font) on the platform class sun.font.FontManager. Based on the code in sun.font.FontManager, I created a class for use in my application which only contains the variables and methods necessary for the registerFont(Font) method.
    But It doesnt works.
    Hope someone suggests any solution..!!
    Thanks,
    shri

    Ujjal wrote:
    Hi All,
    Need your help...
    I have just started learning Java and JSP.
    I was trying to write a simple Shopping Cart program in JSP. I have created a directory under my root context directory. But while I am invoking the JSP, I am getting a error like this:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 18 in the jsp file: /JspSessionCart/build/carts.jspMaybe you should look at that JSP. It's incorrect, obviously.
    Look, here's a hint:
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\mycontext\org\apache\jsp\JspSessionCart\build\carts_jsp.java:66: package sessions does not exist
    cart = (sessions.DummyCart) jspxpage_context.getAttribute("cart", PageContext.SESSION_SCOPE);Why isn't this a good enough guide?

  • Embedding fonts at runtime in Adobe AIR

    I'm trying to register fonts that are stored in an external SWF, and embed them at runtime into an Adobe AIR application. I'm currently using a File object to load the SWF, but am not sure how to register the fonts after that. Anyone has any ideas? Thanks!

    This is the code I have. Basically I hit a button, a file open dialog comes up, and then I use a Loader to load the SWF. But how do I register the font after that? Is what I'm doing in fontLoaded() correct?
    Thanks!
    ZQ
    --- Code ---
    import flash.utils.describeType;
                import mx.controls.SWFLoader;
                private var myFontFile: FileReference = new FileReference();
                private var myFont: File = new File();
                private function initApp(): void
                    var embeddedFonts: Array = Font.enumerateFonts(false);
                    trace ("=== BEFORE ===");
                    for (var i: int = 0; i < embeddedFonts.length; i++)
                        var item: Font = embeddedFonts[i];
                        trace("["+i+"] name: "+item.fontName + ", style: "+ item.fontStyle+", type: "+item.fontType);
                    btnLoadFont.addEventListener(MouseEvent.CLICK, loadFont);
                private function loadFont(e: MouseEvent): void
                    myFont.browseForOpen("Select Font");
                    myFont.addEventListener(Event.SELECT, fontSelect);
                private function fontSelect(e: Event): void
                    trace("File: "+myFont.url);
                    var loader: Loader = new Loader();
                    var context: LoaderContext;
                    var loaderInfo: LoaderInfo = loader.contentLoaderInfo;
                    loaderInfo.addEventListener(Event.COMPLETE, fontLoaded);
                    context = new LoaderContext( true, new ApplicationDomain( ApplicationDomain.currentDomain ) );
                    loader.load(new URLRequest(myFont.url), context);
                private function fontLoaded(e: Event): void
                    trace(e.target);
                    var FontLibrary:Class = ApplicationDomain((e.target as LoaderInfo).applicationDomain).getDefinition('_Verdana') as Class;
                    Font.registerFont(FontLibrary);
                    var embeddedFonts: Array = Font.enumerateFonts(false);
                    trace("=== AFTER ===");
                    for (var i: int = 0; i < embeddedFonts.length; i++)
                        var item: Font = embeddedFonts[i];
                        trace("["+i+"] name: "+item.fontName + ", style: "+ item.fontStyle+", type: "+item.fontType);

  • Fonts in Runtime CSS compiled as SWF do not render with setFormatOfRange() but works with setStyle()

    Im having a requirement to load fonts at runtime and display them in a  RichEditableText, The text in the RichEditableText could have multiple  formats so I use the RichEditableText's setFormatOfRange() method to set  the font.
    I use a CSS compiled as a SWF to load the fonts, Fonts render when the font is set via the -setStyle() method as demonstrated in the code below
    Im using Flash Builder 4 with SDK version 4 to compile the app(Using the default Spark Theme).
    Below is the CSS file (fontCSS.css)- You might need to copy fonts from the Widows Font folder for this in a fodler named fonts,
    /* CSS file fontCSS.css*/
    @namespace s "library://ns.adobe.com/flex/spark";
    @namespace mx "library://ns.adobe.com/flex/mx";
    @font-face{
        src: url("fonts/Articulate.TTF");
        fontFamily: "Articulate123";
        embedAsCFF: true;
    @font-face{
        src: url("fonts/AGENCYB.TTF");
        fontFamily: "Agency123";
        embedAsCFF: true;
    Right Click on the CSS file, in Flash Builder 4 and select "Compile CSS to SWF".
    Run the MXML application below and you should see the issue Im trying to describe.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
                   creationComplete="application1_creationCompleteHandler(event)">
        <fx:Script>
            <![CDATA[
                import flash.utils.describeType;
                import flashx.textLayout.formats.TextLayoutFormat;
                import mx.collections.ArrayCollection;
                import mx.events.CalendarLayoutChangeEvent;
                import mx.events.FlexEvent;
                import mx.events.StyleEvent;
                import spark.events.IndexChangeEvent;
                private var swfLoader:Loader
                protected function application1_creationCompleteHandler(event:FlexEvent):void
                    var cssEventDispatcher:IEventDispatcher=styleManager.loadStyleDeclarations("fontCSS.swf")
                    cssEventDispatcher.addEventListener(StyleEvent.COMPLETE, onComplete);
                private function onComplete(event:Object):void
                    fontList.dataProvider=new ArrayCollection(Font.enumerateFonts())
                protected function fontList_changeHandler(event:IndexChangeEvent):void
                    var tlformat:TextLayoutFormat=new TextLayoutFormat()
                    tlformat.fontFamily=fontList.selectedItem.fontName
                    textEditor.setFormatOfRange(tlformat,0,5)
            ]]>
        </fx:Script>
        <s:layout>
            <s:VerticalLayout/>
        </s:layout>
        <s:Label text="Please select a font from the list below"/>
        <s:List id="fontList" change="fontList_changeHandler(event)">
        </s:List>
        <s:RichEditableText id="textEditor2"
                            fontSize="30"
                            fontFamily="{fontList.selectedItem.fontName}"    >
            <s:p>Hello -  fontFamily set via css binding</s:p>
        </s:RichEditableText>
        <s:RichEditableText id="textEditor"
                            fontSize="30"
                            >
            <s:p>Hello - fontFamily set via setFormatOfRange()</s:p>
        </s:RichEditableText>
    </s:Application>
    tried to use an external SWF with the fonts compiled in them Via AS3, that too dosent seem to work, The setStyle() also refuse the work with the below SWF
    here is the AS3 project code for your reference
    FontEmbedder.as
    package
        import flash.display.Sprite;
        import flash.system.Security;
        import flash.text.Font;
        public class FontEmbedder extends Sprite
            public function FontEmbedder()
                Security.allowDomain("*")
            [Embed(source="/fonts/Articulate.TTF", fontName="Articulate123", embedAsCFF="true")] 
            public var articulateFont:Class;
            [Embed(source="/fonts/AGENCYB.TTF", fontName="Agency123", embedAsCFF="true")] 
            public var agencyFont:Class;
    We ve been wrecking our heads off to figure out a solution for this. Ultimately decided to post a question here.
    Your feedback will be highly appreciated.
    Below are  snapshots of how the 2 fonts are rendered
    Regards.

    Hi Alex,
    I did read through your blog the other day, This must have been thepost you were referring to,
    http://blogs.adobe.com/aharui/2010/03/flex_and_embedded_fonts.html
    The post is explanatory, but how would we implement this successfully wth code?
    A working AS3 code example of your explanation would be more than helpful.
    Regards

  • How can I get motherboard ID with flex?

    How can I get motherboard ID with flex? I tried many. But I cannot find some way..

    select distinct group_id
      from tab_tmp t
    where t.group_id not in (select distinct t2.group_id
                                from tab_tmp t2
                               where t2.colour = 'BLACK');
            GROUP_ID
    1     2220052-----
    Edited by: stefan nebesnak on Feb 24, 2013 9:02 AM
    In the TEST table there are the 'BLUE' and 'GREEN' values together in all cases, which confused me. ツ
    <tt>
    GROUP_ID     COLOUR     KEY
    <font color="#FF0000">--1--</font>
    8311226          <font style="background-color: #E7FA6B">GREEN</font>     12428183
    8311226          <font style="background-color: #D7CEFF">BLUE</font>     12428183
    8311226          <font style="background-color: #E7FA6B">GREEN</font>     35428017
    8311226          BLACK     5415875
    <font color="#FF0000">--2--</font>
    2220052          <font style="background-color: #E7FA6B">GREEN</font>     12253085
    2220052          WHITE     12253085
    2220052          <font style="background-color: #D7CEFF">BLUE</font>     84553085
    <font color="#FF0000">--3--</font>
    3029178          BLACK     54587856
    3029178          <font style="background-color: #D7CEFF">BLUE</font>     54587856
    3029178          <font style="background-color: #E7FA6B">GREEN</font>     67080752
    </tt>

  • How to register the recipient when create job by function

    I am now use JOB_OPEN , JOB_SUBMIT and JOB_CLOSE to create a job in the program. And need to post the result of the report to the person by email.
    Can you tell me how to register the recipient when create the job.
    ( in sm36, it is easily to do but how to do in coding? )
    regards,
    slam

    Hi
    I think in Back ground using the above fun modules you can't send a mail to the receipient.
    see the use of the above fun modules;
      IF p_bjob = 'X'.
        CONCATENATE sy-cprog sy-datum sy-uzeit
                    INTO jobname SEPARATED BY '_'.
        CALL FUNCTION 'JOB_OPEN'
          EXPORTING
            jobname          = jobname
          IMPORTING
            jobcount         = jobcount
          EXCEPTIONS
            cant_create_job  = 1
            invalid_job_data = 2
            jobname_missing  = 3
            OTHERS           = 4.
        CALL FUNCTION 'GET_PRINT_PARAMETERS'
          IMPORTING
            out_archive_parameters = arc_params
            out_parameters         = print_params
            valid                  = valid
          EXCEPTIONS
            archive_info_not_found = 1
            invalid_print_params   = 2
            invalid_archive_params = 3
            OTHERS                 = 4.
        IF valid = chk.
          SUBMIT ybrep
                          WITH < sel Screen>
                          AND RETURN
                          USER               sy-uname
                          VIA JOB            jobname
                          NUMBER             jobcount
                          TO SAP-SPOOL
                          SPOOL PARAMETERS   print_params
                          ARCHIVE PARAMETERS arc_params
                          WITHOUT SPOOL DYNPRO.
          CALL FUNCTION 'JOB_CLOSE'
            EXPORTING
              jobcount             = jobcount
              jobname              = jobname
              strtimmed            = 'X'
            EXCEPTIONS
              cant_start_immediate = 1
              invalid_startdate    = 2
              jobname_missing      = 3
              job_close_failed     = 4
              job_nosteps          = 5
              job_notex            = 6
              lock_failed          = 7
              invalid_target       = 8
              OTHERS               = 9.
          IF sy-subrc <> 0.
           MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ELSE.
            MESSAGE i029 WITH jobname.
          ENDIF.
        ELSE.
          MESSAGE s000 WITH text-003.
          STOP.
        ENDIF.
      ENDIF.
    Reward points if useful
    Regards
    Anji

  • How to register multiple ipods on same email account

    how do register multiple ipods using the same email account?

    Maybe here
    How to use multiple iPods, iPads, or iPhones with one computer
    You can have an unlimited number of devices that you own or control for private use tied to one iTunes account. But you have only have five tied to one iCloud account.
    To alllow FT and Messagibng between them see:
    MacMost Now 653: Setting Up Multiple iOS Devices For Messages and FaceTime

  • How to load a tif image in flex

    Hi All,
    Is it possible to load a tif image in flex. If it's possible
    anyone guide me or send me some code snippets regarding how to
    display a tif image in flex.
    Regards,
    Dharma

    "flexdharma" <[email protected]> wrote in
    message
    news:ga2d96$p8h$[email protected]..
    >
    Hi All,
    > Is it possible to load a tif image in flex. If it's
    possible anyone guide
    > me or send me some code snippets regarding how to
    display a tif image in
    > flex.
    Convert it to the much more web-friendly png format.

  • How to register custom report under Custom Development Application

    Hi 2 all
    How to register custom report under the Custom Development application in R12 vision DB, and also confirm location/folder of Custom Development application in R12.
    Thanks
    Zulqarnain

    Hi,
    You may or may not need to "register" the workflow - it depends on the changes that you made and which Item Type you modified. Some applications are essentially hard-coded to use a specific item type and process, some hard-coded to use an item type but you can configure the process to use, and some allow you to specify which item type and which process to use.
    Without knowing exactly what you have done, though, there is no specific advice that anyone can give you here on what you need to do, apart from to ensure that you have saved the new definition to the database.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • A friend created 3 accounts on his iPhone 5 but forgot the passwords. He can't reset the password as yahoo address is no longer valid. Erasing the phone doesn't solve the issue. How to register the phone with Apple?

    A computer illiterate friend created 3 accounts on his iPhone 5 but forgot the passwords. He can't reset the password as his yahoo address is no longer valid. Erasing the phone doesn't solve the issue as the Apple server identifies the hardware as registered. How to register the phone with Apple?
    I helped him create a new email address and new iCloud account on my Mac but when we try to register the phone with Apple it says: Maximim accounts limit reached for this device. How can he register the phone? I read different threads and found out that only Apple care can do that. We're in Romania and don't know where to call. Any suggestions on how we fix this?

    When I checked the support site for Romania, you apparently don't have an Apple Care contact center.  You "may" try calling the US Apple care number to verify the account and have the password reset sent to a different email address.  800-694-7466

  • How to register the phone number of my friends to imessage,and i able to contact them or call them?

    I buy my ipad in qatar duty free i mean ipad4 wifi +cellular i thought i can use it for text or call by means of phone number only but im dissapoint when i used it and found out that i have to register all numbers to imessage and i cannot find how to register it.please help me to solve this matter.

    You have a password, so good move on your part.  Whether you erase it or the thief does, they still get to use the iPhone as theirs.  Which is more important (pick one), protecting your data or punishing the thief?
    Ringing occurs at the carrier.  Chances are you're going to voicemail after only two or three rings.  If you have an iCloud backup also a good move.  Re-read my question in the first paragraph.

  • How to change fonts in iCal?

    How to change fonts in iCal?  I can't harly read my calendar-tiny print size.  How could I change the font size?

    Your question really got me thinking.   Actually, I don't think you should feel like an idiot at all.  I think it is Apples failure that they made this difficult.  Seriously, who would ever think to press Command and arrow to switch months?  The little arrows next to the word Today are so small and inconspicuous that I remember having this very same question when I started using iCal too. 
    So, here is what I did to make it easier for my wife that uses iCal too. 
    Open System Preferences, Keyboard, Keyboard Shortcuts Tab, and finally Application Shortcuts.
    Click on the Plus symbol under the right hand pane.
    Select iCal from the Application list
    Add two shortcuts:  One named Next and the other named Previous and press your desired Keyboard Shortcut.
    I assigned the left arrow and right arrow for these tasks.
    Now it makes more sence for someone that is not used to Apples idotic way of doing things. ;-)
    I use keyboard shortcuts all over the place.  Actually, sometimes it gets me into trouble when I use someone elses computer and my shortcuts don't work.  I blame their computer for it and forget it was my "tuning".

Maybe you are looking for

  • Multiple SIM instances on same db - disable Active Sync for one?

    Hello. I am trying to set up two instances of Identity Manager that are running on the same machine and are connected to the same database. I want one to be doing the Active Sync provisioning and the other to not. Is there a way to disable Active Syn

  • Help!!! Itunes and Quicktime does not open

    I already followed the suggestion here on the problems for ITunes and Quicktime suggestions to follow to go to Control panel but does not work and tried to uninstall and install back the itunes with quicktime but still no luck....I am deciding to ret

  • WRT54GS Router-trouble connecting to vista computer

    I have 2 laptops. One is xp and one is vista. I used the setup cd to install my new router on both of them. the first thing i noticed was that there were 2 very different setups for the vista and the xp computers. when i loaded it into the xp compute

  • Add/remove/change multi-pages of a pdf file

    What are the costs to me of various alternatives , should  I need to carry out the captioned activity, 6 times a year, or a total of 50 pages a year?

  • Performance better on multi scene app

    All is it better to have multiple tables on one scene and add, updating, deleting rows dynamically. Or have multiple scenes and doing the same?