Create graphic in MS-Excel with DOI

Hi all,
I'm begining using Desktop Office Interface (DOI).
It's possible to create graphics with in the document because of DOI?
Thanks
enzo

checking ABAP code sample generating graphs on excel using ole.
(Note: this is not my code, i got it somewhere from sdn/internet and dont remember the source)
report y_excel_chart
       no standard page heading.
include ole2incl .
data: gs_excel type ole2_object ,
gs_wbooklist type ole2_object ,
gs_application type ole2_object ,
gs_wbook type ole2_object ,
gs_activesheet type ole2_object ,
gs_sheets type ole2_object ,
gs_newsheet type ole2_object ,
gs_cell1 type ole2_object ,
gs_cell2 type ole2_object ,
gs_cells type ole2_object ,
gs_range type ole2_object ,
gs_font type ole2_object ,
gs_interior type ole2_object ,
gs_columns type ole2_object ,
gs_charts type ole2_object ,
gs_chart type ole2_object ,
gs_charttitle type ole2_object ,
gs_charttitlechar type ole2_object ,
gs_chartobjects type ole2_object .
data gv_sheet_name(20) type c .
data gv_outer_index like sy-index .
data gv_intex(2) type c .
data gv_line_cntr type i . "line counter
data gv_linno type i . "line number
data gv_colno type i . "column number
data gv_value type i . "data
parameters: p_sheets type i .
start-of-selection .
  do p_sheets times .
*--Forming sheet name
    gv_intex = sy-index .
    gv_outer_index = sy-index .
    concatenate 'Excel Sheet #' gv_intex into gv_sheet_name .
*--For the first loop, Excel is initiated and one new sheet is added
    if sy-index = 1 .
      create object gs_excel 'EXCEL.APPLICATION' .
      set property of gs_excel 'Visible' = 1 .
      get property of gs_excel 'Workbooks' = gs_wbooklist .
      get property of gs_wbooklist 'Application' = gs_application .
      set property of gs_application 'SheetsInNewWorkbook' = 1 .
      call method of gs_wbooklist 'Add' = gs_wbook .
      get property of gs_application 'ActiveSheet' = gs_activesheet .
      set property of gs_activesheet 'Name' = gv_sheet_name .
*--For the rest of loops, other sheets are added
    else .
      get property of gs_wbook 'Sheets' = gs_sheets .
      call method of gs_sheets 'Add' = gs_newsheet .
      set property of gs_newsheet 'Name' = gv_sheet_name .
    endif .
    gv_line_cntr = 1 . "line counter
*--Title
*--Selecting cell area to be merged.
    call method of gs_excel 'Cells' = gs_cell1
      exporting
        #1 = 1
        #2 = 1.
    call method of gs_excel 'Cells' = gs_cell2
      exporting
        #1 = 1
        #2 = 4.
    call method of gs_excel 'Range' = gs_cells
      exporting
        #1 = gs_cell1
        #2 = gs_cell2.
    call method of gs_cells 'Select' .
*--Merging
    call method of gs_cells 'Merge' .
*--Setting title data
    call method of gs_excel 'Cells' = gs_cell1
      exporting
        #1 = gv_line_cntr
        #2 = 1.
    set property of gs_cell1 'Value' = 'KISHAN' .
*--Formatting the title
    get property of gs_cell1 'Font' = gs_font .
    set property of gs_font 'Underline' = 2 .
    set property of gs_font 'Bold' = 1 .
    set property of gs_cell1 'HorizontalAlignment' = -4108 .
    get property of gs_cell1 'Interior' = gs_interior .
    set property of gs_interior 'ColorIndex' = 15 .
    set property of gs_interior 'Pattern' = -4124 .
    set property of gs_interior 'PatternColorIndex' = -4105 .
    gv_line_cntr = gv_line_cntr + 1 .
*--Writing some additional data for the title
    call method of gs_excel 'Cells' = gs_cell1
      exporting
        #1 = gv_line_cntr
        #2 = 1.
    set property of gs_cell1 'Value' = 'Sheet No' .
    call method of gs_excel 'Cells' = gs_cell1
      exporting
        #1 = gv_line_cntr
        #2 = 5.
    set property of gs_cell1 'Value' = ':' .
    call method of gs_excel 'Cells' = gs_cell1
      exporting
        #1 = gv_line_cntr
        #2 = 6.
    set property of gs_cell1 'Value' = gv_intex .
*--Formatting the area of additional data 1
    call method of gs_excel 'Cells' = gs_cell1
      exporting
        #1 = 1
        #2 = 1.
    call method of gs_excel 'Cells' = gs_cell2
      exporting
        #1 = gv_line_cntr
        #2 = 5.
    call method of gs_excel 'Range' = gs_cells
      exporting
        #1 = gs_cell1
        #2 = gs_cell2.
    call method of gs_cells 'Select' .
    get property of gs_cells 'Font' = gs_font .
    set property of gs_font 'Bold' = 1 .
*--Formatting the area of additional data 2
    call method of gs_excel 'Cells' = gs_cell1
      exporting
        #1 = 1
        #2 = 5.
    call method of gs_excel 'Cells' = gs_cell2
      exporting
        #1 = gv_line_cntr
        #2 = 5.
    call method of gs_excel 'Range' = gs_cells
      exporting
        #1 = gs_cell1
        #2 = gs_cell2.
    call method of gs_cells 'Select' .
    get property of gs_cells 'Columns' = gs_columns .
    call method of gs_columns 'AutoFit' .
*--Bordering title data area
    call method of gs_excel 'Cells' = gs_cell1
      exporting
        #1 = 1
        #2 = 1.
    call method of gs_excel 'Cells' = gs_cell2
      exporting
        #1 = gv_line_cntr
        #2 = 6.
    call method of gs_excel 'Range' = gs_cells
      exporting
        #1 = gs_cell1
        #2 = gs_cell2.
    call method of gs_cells 'Select' .
    call method of gs_cells 'BorderAround'
      exporting
        #1 = 1 "continuous line
        #2 = 4. "thick
*--Putting axis labels
    gv_colno = 2 .
    gv_line_cntr = gv_line_cntr + 5 .
    gv_linno = gv_line_cntr - 1 .
    call method of gs_excel 'Cells' = gs_cell1
      exporting
        #1 = gv_linno
        #2 = 1.
    set property of gs_cell1 'Value' = 'X' .
    call method of gs_excel 'Cells' = gs_cell1
      exporting
        #1 = gv_line_cntr
        #2 = 1.
    set property of gs_cell1 'Value' = 'Y' .
*--Generating some data
    do 3 times .
      gv_value = gv_outer_index * sy-index * 10 .
      call method of gs_excel 'Cells' = gs_cell1
        exporting
          #1 = gv_linno
          #2 = gv_colno.
      set property of gs_cell1 'Value' = sy-index .
      call method of gs_excel 'Cells' = gs_cell1
        exporting
          #1 = gv_line_cntr
          #2 = gv_colno.
      set property of gs_cell1 'Value' = gv_value .
      gv_colno = gv_colno + 1 .
    enddo .
*--Source data area
    gv_colno = gv_colno - 1 .
    call method of gs_excel 'Cells' = gs_cell1
      exporting
        #1 = gv_linno
        #2 = 1.
    call method of gs_excel 'Cells' = gs_cell2
      exporting
        #1 = gv_line_cntr
        #2 = gv_colno.
    call method of gs_excel 'Range' = gs_cells
      exporting
        #1 = gs_cell1
        #2 = gs_cell2.
    call method of gs_cells 'Select' .
    get property of gs_application 'Charts' = gs_charts .
    call method of gs_charts 'Add' = gs_chart .
    call method of gs_chart 'Activate' .
    set property of gs_chart 'ChartType' = '51' . "Vertical bar graph
    call method of gs_chart 'SetSourceData'
      exporting
        #1 = gs_cells
        #2 = 1.
    set property of gs_chart 'HasTitle' = 1 .
    get property of gs_chart 'ChartTitle' = gs_charttitle .
    get property of gs_charttitle 'Characters' = gs_charttitlechar .
    set property of gs_charttitlechar 'Text' = 'Sample Graph' .
*--Locate the chart onto the current worksheet
*--Activate current sheet
    call method of gs_excel 'WorkSheets' = gs_activesheet
      exporting
        #1 = gv_sheet_name.
    call method of gs_activesheet 'Activate' .
    call method of gs_chart 'Location'
      exporting
        #1 = 2
        #2 = gv_sheet_name.
*--Reposition the chart on the worksheet (cut&paste)
    call method of gs_activesheet 'ChartObjects' = gs_chartobjects .
    call method of gs_chartobjects 'Select' .
    call method of gs_chartobjects 'Cut' .
*--Select new area
    gv_line_cntr = gv_line_cntr + 2 .
    call method of gs_excel 'Cells' = gs_cell1
      exporting
        #1 = gv_line_cntr
        #2 = 1.
    call method of gs_excel 'Cells' = gs_cell2
      exporting
        #1 = gv_line_cntr
        #2 = 1.
    call method of gs_excel 'Range' = gs_cells
      exporting
        #1 = gs_cell1
        #2 = gs_cell2.
    call method of gs_cells 'Select' .
    call method of gs_activesheet 'Paste' .
  enddo.
*--Deallocating memory
  free: gs_excel, gs_wbooklist, gs_application, gs_wbook,
  gs_activesheet,gs_sheets, gs_newsheet, gs_cell1,
  gs_cell2, gs_cells, gs_range, gs_font, gs_interior,
  gs_columns, gs_charts, gs_chart, gs_charttitle .

Similar Messages

  • Creating Graphics Component in Forte with GUI's

    I have created a JFrame with 2 JPanels in it that are placed side by side. However, I want to access these JPanels with Graphics...but I have no idea how to do that within Forte...I am using a Mouse Click on an Evaluate button to trigger the event...in normal java programming, from what I have seen, people create the JPanel class extends, etc. and then they put a paint() method within it...but in the Forte environment, I have no idea how to access either panel because Forte duzznt init it as a class but as just a component...I tried using Canvas instead of JPanel but that got me no where...can what I want be done within Forte or must I do this by my own editing, etc? thank you....jerry blimbaum panama city, fl

    I managed to get it work at the end...
    First, the components directory was at this location:
    C:\Users\<username>\AppData\Local\Adobe\Flash CS5\en_US\Configuration\Components
    Then, to make a component out of a MovieClip, right click on the MovieClip in the library and select "Component Definition" and check the checkbox "Display in Components Panel". What I did then was to right click on the MovieClip and selected export swc file, and saved it in the directory above. This exported only one Component, which was fine for me. Probably it would be possible to do something similar to save a library of components as a .fla or .scw or so, but I don't know the details.

  • How to create rtf template to view report in Word and Excel, with numeric f

    Hi,
    Please help me!
    How to create rtf template to view report in Word and Excel, with numeric formatted fields (like this 999 999 999,99 with spaces between numbers) and then end user be able to process those fields with Excel tools (sum, etc).
    Thank you.

    From what I have seen Excel can not handle 999 999 999.00. You can use 999999999.00 and then format it as you want in the xls bt you can not have values like 999 999 999.00 coming from publisher output and have functions on the values in Excel
    Tim

  • Using Excel with Visual C++ 6.0 (need a graph control that behaves as much like the one in CVI as possible)

    I hate to beat this to death but I was unable to find a
    clear answer to this question.  Does NI provide Excel control from within
    Visual C++ 6.0? 
    I read that NI supports the ANSI-C library only for Visual C++ 6.0 users:
    Thread : "Re: Benifits of using measurment
    studio for VC++ 6.0?"
    NI REP : drohacek
    Quote  : "we made the decision to support Visual
    C++ 6.0 users only through the ANSI-C interface and not through the Measurement
    Studio MFC-based class libraries."
    If there is a suggested way of controlling Excel from within Measurement Studio
    for Visual C++ 6.0 then I’d love to know it. 
    If not, can a plain statement be made basically stating that if you want
    to control Excel you can’t use a Visual C++ 6.0 environment even with Measurement
    Studio support?
    With .NET of course you can just decide to have Excel support added during
    project creation.  CVI can act as an ActiveX server and easily control
    Excel just by building off the examples shipped with CVI.  I see that
    there is support, using the Measurement Studio for Visual C++ 6.0 Project Wizard,
    for taking existing CVI projects and converting them to Visual C++ 6.0 projects
    or for calling CVI libraries from a .dll from within Visual C++ 6.0.  I suppose I could do the work
    in CVI and then convert the project but I'm so deeply tied into all my MFC calls that I don't see
    how I can cleanly include the CVI libraries into my existing VC++ 6.0 projects.
    What I'm really after here is a visual graph control like the one in CVI that I
    can use from Visual C++ 6.0.  I purchased a 3rd party graph control for use
    in VC++ 6.0 that works well but isn't really visual.  I mean you can't
    enter any values in it until you run the program and fill it out programmatically. 
    Then you can see which columns are two narrow, quit the program, adjust the
    column width of your now empty control, and repeat, until you get the thing
    looking the way you want.  If I could call into Excel from within Visual
    C++ 6.0  the way I do from within .NET
    then I could use Excel to hold the table and just read in the values into my table
    control at run time.  Basically I'd use Excel as a visual development tool
    for all my tables.
    I do all my coding from within CVI and Measurement Studio for Visual C++
    6.0.  I'd use CVI for everything if I didn't depend so heavily on certain
    outside controlled C++ .dll's.  Could you please suggest then what I can
    do to get Excel support for Visual C++ 6.0?
    Last question :
    Is there any plan to ever have a NI table control like the CVI table control for
    use in Visual Studio?  One that you can
    completely set up before you do any compiling? 
    I imagine that the way Microsoft sets up their environment makes this idea impossible.  Otherwise someone would
    have come up with a truly “visual” table control before now.
    Thanks,
    Grant
    Grant M. Johnson
    Project Engineer
    LECO Corporation

    Hello Grant
    You can most certainly use Excel with VC++ 6.0. Measurement Studio won't provided you with any classes to talk to Excel in VC++ 6.0. This is because Excel allows control via Automation and you can use its automation API to do anything you need with Excel. This is what CVI uses as well.
    You can see this MSDN article on how to set this up. This mentions VC.NET, but it should work the same way.
    Here is one that talks about VC 6.0 and Excel.
    Here is a code project article about this.
    Even with .NET, you have to do thru the Excel Automation support. Excel started shipping with Primary Interop Assemblies (PIA) which are .NET wrappers about the Excel Automation object model. C++ Automation is definetely not as nice as .NET, BTW
    See this document for more information about the Excel object model.
    I would not recommend using the CVI Excel libraries if all you want to use them for is Excel automation. You will end up creating un-necessary dependencies and go through extra layers that way. You can make calls straight to Excel from VC++ without requiring CVI.
    One quick observation about your excel approach. If you decide to use Excel as your table, you might be requiring everyone who uses your application to have Excel installed on their machines. Just wanted to make sure this was acceptable to you.
    Have you looked at the Datagrid Activex control, which is one of the common controls that ships with Visual Studio? You can add it to Visual Studio by right-clicking and picking it from the list of installed activex control. If you have not already, you should check it out.
    Microsoft has made significant improvements in the number of controls they provide with .NET. They have a Datagrid control that seems to be what you need.
    Measurement Studio did add some high level classes for Excel and Word Automation that simplify some common tasks, but these exists for VS 2003 C++ and VS 2005 C++, not for VC 6.0. Underneath, we end up using the same Excel automation classes, so you can easily setup something similar for VC 6.0. Plus you can find alot of references online on how to use the Excel Automation object model with C++.
    We currently have no plans in Measurement Studio to create a table control unfortunately. I am assuming when you said graph, you actually meant table, since Measurement Studio already  provides a ActiveX graph controls for VC++ 6.0 that is very similar to the CVI graph.
    On a side note, VC++ 6.0 is really really old. Have you considered upgrading?
    To summarize
    - Yes, you can use Excel with Vc++ 6.0 without mstudio.
    - Try using the Datagrid Activex control if you just need a table.
    - Measurement Studio provides high-level excel and word classes for VC++ 6.0
    - Measurement Studio provides a graph control for VC++ 6.0 which is very similar to the CVI graph.
    - Measuremnt Studio does not have a table control.
    - VC++ 6.0 is really really old. Have you considered upgrading?
    Bilal Durrani
    NI

  • Report printing in excel with multiple sheets

    Hi Experts,
         I am working in Oracle Reports 10g.  I need to print the report in Excel....
    For this i have created .JSP file and now printing in Excel(Sheet1).
    My requirement is i need to print the report in multiple sheets.
    For example if i run the departments report then the generated excel file should be as below
    (Sheet1 - HR, Sheet2 - FINANCE, Sheet3 - MARKETING, etc.,)
    How can i do this?
    Thanks in Advance.

    Hi All,
       Is this possible  Report printing in excel with multiple sheets??
    Please give solution for my above post Report printing in excel with multiple sheets..
    Thanks,
    Su.gi

  • Regarding Pages charts, when I try to 'build' a 3D chart all I get is little dots but not graphics.  No problems with 2D charts though. Guess my question is "Help?"

    Regarding Pages charts, when I try to 'build' a 3D chart all I get is little dots but not graphics.  No problems with 2D charts though. Guess my question is "Help?"

    Sorry for the delay getting back to this.
    Thanks to Fruhulda and Peter for their comments regarding the refusal of Pages to let me make 3D charts. 
    In answer to the questions put to  me in this regard :
    1. Pages version : Pages '09  v.4.1 (923)
    2. Mac O/S :          v.10.6.8 
    3. 3D chart :          Can't find a 'name', but upright bars with rounded corners ???
    4. Moved apps :    Not that I'm aware of!  All should be as installed off the disc.
    5. A note :              I have been able to create these in the past - related to a SW update? 
                          and ... can create these charts perfectly in Keynote (go figure).
    Thanks to all.
    CM

  • Export to excel with javascript/vbscript or with plsql(html table)

    i have searched for a way to export data from OracleXe to excel without losing formatting .
    So far i have found 2 possible relatively easy ways that i am still researching
    (i do not include the ask tom sylk format way of exporting )
    1 to export the query to a html table, while using stylesheets for formatting
    (using microsoft specific styles)
    2. use of javascript/vbscript to fill an array and write this array to excel with use
    of visual basic for applications in excel.This also provides charting capabilities.
    I am still researching this two ways, and have
    encountered a few obstacles (help would be appreciated)
    1 the first way:
    a. create a button " export to excel"
    b. create the following pl/sql procedure:
    owa_util.mime_header('application/vnd.ms-excel');
    owa_util.http_header_close;
      HTP.PRINT('<html>');
      HTP.PRINT('<head>');
      HTP.PRINT('<meta http-equiv="Content-Type" content="text/html">');
      HTP.PRINT('<title>Title of the HTML File</title>');
      HTP.PRINT('</head>');
      HTP.PRINT('<body TEXT="#000000" BGCOLOR="#FFFFFF">');
      HTP.PRINT('<h1>Heading in the HTML File</h1>');
      HTP.PRINT('<p>Some text in the HTML file.');
      HTP.PRINT('</body>');
      HTP.PRINT('</html>');
    htmldb_application.g_page_text_generated := true;
    htmldb_application.g_unrecoverable_error := true;
    c: run the procedure conditionally based on the button  "export to excel"
    the problem with this way is that using htmldb_application.g_unrecoverable_error := true; is not the ideal way, because it
    stops further processing, but if i leave it out, the export doesn't happen.
    To export to excel while retaining data formatting  you have to use microsoft excel
    specific styles(Seedocumentation on the microsoft site)
    2.The second way:
    a create a pl/sql procedure or sql query.
    b use this query to fill a vbscript/javascript array with values
    c write these values to excel with use of vba in excel :
    the obstacle i encountered here was that i dont know how to export the result of a
    query to a visual basic script or javascript array.

    Using approach 1) works fine for me.
    the problem with this way is that using htmldb_application.g_unrecoverable_error := true;
    is not the ideal way, because it
    stops further processing, but if i leave it out, the export doesn't happen. Why is this a problem?
    I created the button to export the excel file on page 1 and created your pl/sql procedure on page 2 using an onload process.
    Works fine.
    Other approaches for exporting to excel are:
    http://www.oracle.com/technology/pub/articles/saternos_broadcast.html
    http://htmldb.oracle.com/pls/otn/f?p=18326:54:5685133631021176591::::P54_ID:1962
    ~Dietmar.

  • Hyperion IR 11 -Export to Excel with formatting

    Hi,
    we have problem in exporting pivot sections to excel with the format intact.
    Is there really an option in Hyperion IR 11, to use this as such?
    I have a script that creates excel, by creating a MHTML And converting it to excel.
    But I need to know other options as well.
    Thanks in advance.

    Hi~
    I get the same question.
    I export pivot sections to excel with the format intact, but it did not work.
    When export pivot sections to excel can not with the format intact
    My script below:
    ActiveDocument.Sections["sectionname"].Export('C:\\test.xls',bqExportFormatOfficeMHTML,true,true);
    What is it wrong? Thanks~

  • How to generate a report in Excel with multiple sheets using oracle10g

    Hi,
    I need a small help...
    we are using Oracle 10g...
    How to generate a report in Excel with multiple sheets.
    Thanks in advance.
    Regards,
    Ram

    Thanks Denis.
    I am using Oraclereports 10g version, i know desformat=spreadsheet will create single worksheet with out pagination, but my requirment is like the output should be generated in .xls file, and each worksheet will have both data and graphs.
    rdf paperlayout format will not workout for generating multiple worksheets.
    Is it possible to create multiple worksheets by using .jsp weblayout(web source) in oracle reports10g. If possible please provide me some examples
    Regards,
    Ram

  • How do I create an interactive PDF file with variable data

    We would like to basically do a 'mail merge' of our list of customers with an interactive PDF file (including videos, menus, etc - not just form fill out and web links) to create a single PDF file that contains multiple mail pieces ... one for each customer ... with each mail piece being customized for that customer.  Customizations would include different greetings (Dear Bob, Dear Dana, etc), as well as different charts based on data unique to the customer, different photographs, etc.
    I've seen that InDesign and Acrobat Professional can be used to create an interactive PDF (such as from http://tv.adobe.com/watch/ask-the-adobe-ones/14-calling-rufus-about-interactive-pdf-making).  However I don't understand how I can insert data from a database, csv file, excel file etc into the PDF file so that each page, or each set of pages, within the PDF can be customized.
    Can anyone point me to a tool to use for this?
    Thanks,
    Bob Kendall

    For that kind of volume and unattended operation, you want InDesign Server – which is the server/high volume edition of INDD.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Thu, 3 Nov 2011 06:58:07 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: How do I create an interactive PDF file with variable data
    Re: How do I create an interactive PDF file with variable data
    created by Ti26E31DSxxx<http://forums.adobe.com/people/Ti26E31DSxxx> in PDF Language and Specifications - View the full discussion<http://forums.adobe.com/message/4005459#4005459

  • How to create a Macro in excel to store the excel data to Oracle Database

    Hi All
    Does anyone has created a macro in excel which on being run stores the excel data to Oracle database. In my project I need to create one such macro for updating oracle database with excel data and another for inserting excel records.
    I tried doing this using a macro in MS access but Client wants its to be done using Excel Macro only.
    Any help would be highly appreciated.
    Thanks in advance..
    Shikha

    Please read Chapter 19.7 Creating Selection Lists (http://download.oracle.com/docs/html/B25947_01/web_complex007.htm#CEGFJFED) of the Oracle® Application Development Framework Developer's Guide For Forms/4GL Developers 10g Release 3 (10.1.3.0)
    Cheers,
    Mick.

  • Creating a seamless wireless network with 2 AExpress units

    I have 2 Airport Express units in different parts of my house. I have struggled for YEARS trying to get them to create one seamless wireless network with the same name that I could float between. I have never been able to get that to work. anyone?
    I know that some of the problems MAY have to do with the non-apple router settings, but I just have never gotten a clear response form anyone about weather it is doable, and/or worth doing. I would settle for 2 seperate wireless networks that didn't compete with each other and/or constantly need re-booting to stay active. I am generally the most tech savvy person I know and am consulted on IT by friends and colleageus regularly, but I just cannot figure this one out..
    I am totally capable of setting this up, both in the router and the AE units, if someone can just tell me that;
    1) yes it is possible and it will work, and
    2) just set it up like this...

    Thanks for the clarification.  Check your AirPort Express devices one at a time, but other than different device names to avoid confusion.....AirPort Express 1, AirPort Express 2....for example, the settings should look this:
    Open AirPort Utility , select one AirPort Express, click Manual Setup
    Click the Wireless tab below th row of icons
    Wireless Mode = Create a wireless network
    Wireless Network Name = Your choice
    No check mark needed next to "Allow this network to be extended"
    Radio Mode = 802.11n (802.11 b/g compatible) a good choice, but you can choose other combinations by holding down the option key on your Mac while you click on the selection box
    Channel = Automatic
    Wireless Security = WPA2 Personal an excellent choice if all of your devices are compatible with this setting
    Wireless Password = Your wireless password
    Confirm Password
    Click the Internet icon
    Connect Using = Ethernet
    Connection Sharing = Off (Bridge Mode)
    Update to save settings
    Configure AirPort Express 2 exactly the same way and Update to save settings
    Then, power down the entire network.....all devices....order is not important
    Wait a moment, then start the modem/router first and let it run 2-3 minutes by itself
    Start each AirPort Express the same way
    Start each other network device one at a time about a minute apart
    Check for proper network operation
    IF....you did not have your AirPort Express devices in Bridge Mode before.....that is the reason why you are having issues now and also is the reason why the "roaming" network was not working.....assuming that there was a reasonable overlap in wireless coverage between the 2 Express devices, of course.
    If you want to try the "roaming" setup again, assign the exact same wireless network name, security and password to both Express devices and confirm again that both are setup in Bridge Mode as the very last step before  you click the Update button in AirPort Utility.
    Power down the entire network and start up in sequence as well as in the example above.

  • Creating a .jpg image from with in the J2ME app

    Hi,
    I want to send a document to the printer over bluetooth to print.
    For that I searched on net, but couldn't find any APIs supported by J2ME to print it. I also found a link http://www.hcilab.org/documents/tutorials/Brother/ where I found that I can send the data by creating an image and then writing data (text or image ) in to it, and then sending that image to print.
    Image img = Image.createImage(816, 40);
    Graphics g = img.getGraphics();
    g.setColor(0, 0, 0);
    g.setFont(Font.getFont(Font.FACE_PROPORTIONAL, Font.STYLE_BOLD,Font.SIZE_LARGE));
    g.drawString("Printing test from "
                             + System.getProperty("microedition.platform") + " on "
                             + new Date(), 10, 10, 0);
    driver.print(img, btAddr);This code is working fine on this printer.
    I am using HP 460cb printer, and I tried the same thing, but am not getting any results. Can any one of you tell me what mistake am I making.
                    Image blankImage = Image.createImage(SpotBilling.MAX_IMG_WIDTH, SpotBilling.MAX_IMG_HEIGHT);
                    Graphics g = blankImage.getGraphics();
                    g.setColor(0,0,0);
                    g.setFont(Font.getFont(Font.FACE_PROPORTIONAL, Font.STYLE_PLAIN, Font.SIZE_SMALL));
                    g.drawString("Printing test on Wednesday - 18th Jan, 2006", 10, 50, Graphics.TOP|Graphics.LEFT);
                    g.drawImage(imgTest, 60, 150, Graphics.HCENTER | Graphics.VCENTER);
                    int width = blankImage.getWidth();
                    int height = blankImage.getHeight();
                    int y = 0;
                    os.write(CMD_UNIVERSAL_EXIT);
                    for(int i = 1; i<=height; i++){
                             blankImage.getRGB(temp, 0, width, 0, y, width, 1);
                             byte[] pixels = new byte[width];
                             for (int x = 0; x < temp.length; x++) {
                                  pixels[x] = (byte) ((((temp[x] & 0x00FF0000) >> 16)
                                       + ((temp[x] & 0x0000FF00) >> 8) + (temp[x] & 0x000000FF)) / 3);
                             // Transfer Raster Graphics
                             os.write(TRANSFER_RASTER_DATA);
                             byte[] len = numToDecimal(pixels.length);
                             os.write(len);
                             os.write(DATA);
                             os.write(pixels);
                             y++;
                        }I have another query, if I can not do this. Is there any way I can create a .jpg image from with in the J2ME application.
    I have some text and an image that I get by invoking camera from the code and then capturing a picture. I need to combine them both, and then send it to the printer.
    If there is any way, I can convert this blankImage mentioned above (containing both text and Image), please provide me the solution.
    Any document or any source code is appreciated.
    regards,
    Ashish

    I have succeeded in creating a mutable image that contains text and image (.png), through
                         Image img;
                         img = Image.createImage(50, 60);
         protected void paint(Graphics g){
              g.drawImage(img, getWidth()/2, getHeight()/2, Graphics.HCENTER | Graphics.VCENTER);
              Graphics graph = img.getGraphics();
              graph.setColor(0, 0, 0);
              graph.setFont(Font.getFont(Font.FACE_PROPORTIONAL, Font.STYLE_BOLD,
                             Font.SIZE_LARGE));
              graph.drawString("Printing test from "
                                       + System.getProperty("microedition.platform") + " on ", 10, 10, 0);
              graph.drawImage(image, img.getWidth()/2, img.getHeight()/2,Graphics.HCENTER|Graphics.VCENTER);
              graph.fillArc(0,0,10,10,0, 360);
         }Now I want to create a .jpg image of this img image(Mutable image).
    What I am doing is that,
    1. I am converting this image in to int array, using getRGB() method.
    2. Then I am converting int array in to byte array.
    3. And then I am opening a file(extension is .jpg)
    4. Then I am sending this byte array in to the file which is .jpg
    The .jpg file is getting created, but the data in it is very absurd, like yyyyyyyyyyyyyyyyyyyyyyyy.
    Please help me in this matter.
    Regards,
    Ashish

  • Internal Table to Excel with Column Header line

    Hello everyone,
    I need to download Internal table data to excel with a column header line.
    My Code is as follows:
    TYPES:  BEGIN OF y_hdr,
            head(30) TYPE c,
            END OF y_hdr.
    Data:  t_hdr TYPE STANDARD TABLE OF y_hdr.
    Fill internal table t_adrcdata
    fill the header table t_hdr
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            filename                      = C:\test.xls
            filetype                        = 'DBF'
        IMPORTING
          TABLES
            data_tab                        =  t_adrcdata
           fieldnames                       =  t_hdr
         EXCEPTIONS
           file_write_error                = 1
           no_batch                        = 2
    This code gives me a row with column headers.
    However they are all truncated after 10 chars.
    The truncation is independent of column data length. Data could be of length 2,5 or 40 but the header always displays upto 10 chars.
    Keeping the filename as test.xls, when I download it in ASC format instead of DBF the headers are of proper length.
    What could I be doing wrong?
    I know this topic has been discussed before but my question is pertaining to DBF Format download. The reason I chose DBF format is because it downloads the data in DB format and does not give in to Excel formatting.
    FOr example in ASC format:
    1, A field of type Char(12) used to get downloaded into excel without the leading zeros. 000012345678 --> 12345678
    2. Date in format dd-MMM-yyyy in a char(11) field used to get downloaded to excel in dd-MMM-yy format.
    When I chose DBF, this issue was resolved. However, the column headers got truncated at 10 chars.
    Please feel free to recommend any other way of downloading to Excel and preserving format if this method is incorrect/ there is a better way.

    Hi,
    Take 'ASC' format for file type.
    But when you declare your internal table to pass for FM you have to create all the fields with char.
    Example:
    data: begin of it_exl occurs 0,
            bukrs(04) type c,
            belnr(10) type c,
            buzei(03) type c,
    end of ut_exl.
    You need to manipulate your date format and other stuff before appending to this internal table.
    Thanks,
    Deepak.

  • Help Needed in creating dropdown menu in excel using JXL

    Hi,
    I am trying to create dropdown menu in using JXL.
    The Code:
    private void createRequiredRows(WritableSheet writableSheet, List unallowCodeList,int rowCount
                   , int startRowNo,int colCount) throws WriteException {
    Label unallowCode = null;
              WritableFont noBoldFont = new WritableFont(WritableFont.ARIAL, 8,WritableFont.NO_BOLD);
              WritableCellFormat dropDownCellFormat = new WritableCellFormat(noBoldFont,new NumberFormat("000"));
              dropDownCellFormat.setAlignment(Alignment.RIGHT);
              WritableCellFeatures writableCellFeature = new WritableCellFeatures();
              writableCellFeature.setDataValidationList(unallowCodeList);
              for (int rowNo = startRowNo; rowNo < startRowNo + rowCount; rowNo++) {
                   unallowCode = new Label(colCount, rowNo, "Select",dropDownCellFormat);
                   unallowCode.setCellFeatures(writableCellFeature);
                   writableSheet.addCell(unallowCode);
    it creates a drop down in the Excel.
    But writableCellFeature.setDataValidationList(unallowCodeList); has a limitation of characters .So the dropdown menu gets truncated when it exceeds the limitation.
    Can anyone help me in creating dropdown menu in excel without any limitation using JXL..
    Thanks,
    Bisin

    Hi,
    I dont know the solution for this, but heres a work arround
    //create new label some where else in the excel sheet as shown below
    Label lblcmbdata;
    for(int i=0; i<1000; i++)
                 lblcmbdata = new Label(75, i, (i+1)+" satish", format);
                 sheet1.addCell(lblcmbdata);
    }//set the validation range as shown below
    writableCellFeature.setDataValidationRange(75,0,75,1000);
    Label cmb = null;
    cmb = new Label(0, 1, "Select",format);
    cmb.setCellFeatures(writableCellFeature);
    sheet.addCell(cmb);this will create a combo list with 1000 values
    also you can keep the data to be populated in the different sheet in same workbook by creating a named range as below
    workbook.addNameArea("cmbdata", sheet1, 0, 0, 0, 1000);
    // then fill the data in sheet1
    Label lblcmbdata;
    for(int i=0; i<1000; i++)
                    lblcmbdata = new Label(0, i, (i+1)+" satish", format);
                    sheet1.addCell(lblcmbdata);
    //set the validation named range as below
    writableCellFeature.setDataValidationRange("cmbdata");
    Label cmb = null;
    cmb = new Label(0, 1, "Select",format);
    cmb.setCellFeatures(writableCellFeature);
    sheet.addCell(cmb);Thanks and Regards
    Satish

Maybe you are looking for