Want to display a .bmp file in reports

Hello there
I am trying to display a .bmp file on reports which I think is simple.the main problem is that After making changes to report we transfer the report file to Unix and then generate the report in unix and print it and in that process the report stops printing.
Thanks in advance.
Jha

make sure SOURCE FILENAME is valid in your LINK FILE pointing to the image.bmp
Report compiles nicely even with wrong source filename, only when opening layout editor an error message will appear.

Similar Messages

  • I want to display a HTML file that is stored locally on my machine.

    Hello,
    I am having a problem with my paths (I believe). I have created a JEditorPane that reads in a HTLM page. If the page is form the web it works fine:
    page_jep.setPage("http://www.google.com");However I want to display a HTML file that is stored locally on my machine.
    I have tried the following but cant get it to find the stored page:
    page_jep.setPage("file:///index.htm");
    java.io.FileNotFoundException: \index.htm (The system cannot find the file specified)I have tried putting the index file in both the root directory ( C ) and also the same place as where the class files are.
    Any help will be gratefully received,
    Harold Clements

    Nope, I have tried it:
    page_jep.setPage("file://c:\\index.htm");Gives me:
    java.net.UnknownHostException: c

  • How to declare ftp in File class. I want to display filename of file in FTP

    How to declare ftp in File class. I want to display filename of file in FTP server.
    I try
    File f2= new File("ftp://abc:abc1111@ABC/file");
                   String n[] = f2.list();
                   System.out.print(n[0]);
                   Vector filename = null ;
                   for (int i2 = 0; i2 < n.length; i2++) {
                        filename.add(n[i2]);
    but it is not work
    Thank you.

    You can use Jakarta's net-package to connect to a FTP server.
    Download it here:
    http://jakarta.apache.org/site/downloads/downloads_commons-net.cgi
    Here's a small demo:
    import org.apache.commons.net.ftp.*;
    public class FTPTest {
        private boolean isConnected;
        private FTPClient client;
        public FTPTest() {
            isConnected = false;
            connect();
        private void connect() {
            String server = "server.org";
            String username = "user";
            String password = "password";
            client = new FTPClient();
            try {
                client.connect(server);
                client.login(username, password);
                String[] files = client.listNames();
                for(int i = 0; i < files.length; i++) {
                    System.out.println(files);
    isConnected = true;
    disconnect();
    catch(Exception e) {
    e.printStackTrace();
    private void disconnect() {
    if(isConnected) {
    try {
    client.disconnect();
    isConnected = false;
    catch(Exception e) {
    e.printStackTrace();
    public static void main(String[] args) {
    new FTPTest();

  • I want to display a video file on Flash without ENCODING IT! HELP ME PLEASE

    Hi everyone! I am using Macromedia Flash 8 and now I want to
    display a video file (avi formatted, for example) on flash . But
    the main idea is that I don't want to encode this file into *.flv
    file, I want to display it directly. Please, any one , can you help
    me to find a solution?!
    thanks very much

    Nope, I have tried it:
    page_jep.setPage("file://c:\\index.htm");Gives me:
    java.net.UnknownHostException: c

  • I want to display invoice details(MIRO) in REPORT

    Hi,
       i am new for abap can any one please send code for to display miro details in a report based on below logic.
    Pass the RSEG-BELNR & RSEG-GJAHR joined together into BKPF-AWKEY to get the MIRO Doc date BKPF-BUDAT, vendor invoice number BKPF-XBLNR& Vendor invoice date BKPF-BLDAT.
      Pass the RSEG-BELNR & RSEG-GJAHR joined together into BKPF-AWKEY to get the BKPF-BELNR & BKPF-GJAHR to pass this into BSEG-BELNR BSEG-GJAHR to get the BSEG-LIFNR, BSEG-DMBTR, BSEG-ZTERM corresponding to the vendor code.

    Set the option PRINT OBJECT ON to First Page, I think this might resolve your problem.

  • Do not want to display compounded value in BEx report

    Hi,
    My info object material has compounded with plant.
    When I show material in the report, its showing along with plant.
    Plant 20
    Material ABC.
    In report, its showing like 20/ABC.
    I dont want to show 20 with ABC, how do i fix this?
    Thanks

    Removing Controlling Area from Profit/Cost Centre
    In BEx QD, for 'Plant', u should select 'Display As': Key.... And may not work, if select 'Key & Text'.
    Edited by: Mr. V on Dec 3, 2009 8:21 PM

  • How to open a bmp file

    I Want to display a bmp file and use an image icon to display it, how do I do this?
    tnx

    Hi
    I am giving you the source code to display BMP file in Java
    SOURCE CODE =======>>
    public Image loadBitmap (byte[] bmpImage)
    Image image = null;
    try
    ByteArrayInputStream fs=new ByteArrayInputStream(bmpImage);
    int bflen=14; // 14 byte BITMAPFILEHEADER
    byte bf[]=new byte[bflen];
    fs.read(bf,0,bflen);
    int bilen=40; // 40-byte BITMAPINFOHEADER
    byte bi[]=new byte[bilen];
    fs.read(bi,0,bilen);
    // Interpret data.
    int nsize = (((int)bf[5]&0xff)<<24) | (((int)bf[4]&0xff)<<16) | (((int)bf[3]&0xff)<<8)| (int)bf[2]&0xff;
    int nbisize = (((int)bi[3]&0xff)<<24)| (((int)bi[2]&0xff)<<16) | (((int)bi[1]&0xff)<<8)| (int)bi[0]&0xff;
    int nwidth = (((int)bi[7]&0xff) << 24) | (((int)bi[6]&0xff)<<16) | (((int)bi[5]&0xff)<<8)| (int)bi[4]&0xff;
    int nheight = (((int)bi[11]&0xff) << 24)| (((int)bi[10]&0xff)<<16)| (((int)bi[9]&0xff)<<8)| (int)bi[8]&0xff;
    int nplanes = (((int)bi[13]&0xff)<<8)|(int)bi[12]&0xff;
    int nbitcount = (((int)bi[15]&0xff)<<8)|(int)bi[14]&0xff;
    // Look for non-zero values to indicate compression
    int ncompression = (((int)bi[19])<<24)|
    (((int)bi[18])<<16)| (((int)bi[17])<<8)|(int)bi[16];
    int nsizeimage = (((int)bi[23]&0xff)<<24)|
    (((int)bi[22]&0xff)<<16)| (((int)bi[21]&0xff)<<8)|
    (int)bi[20]&0xff;
    int nxpm = (((int)bi[27]&0xff)<<24)|
    (((int)bi[26]&0xff)<<16)| (((int)bi[25]&0xff)<<8)|
    (int)bi[24]&0xff;
    int nypm = (((int)bi[31]&0xff)<<24)| (((int)bi[30]&0xff)<<16)| (((int)bi[29]&0xff)<<8)| (int)bi[28]&0xff;
    int nclrused = (((int)bi[35]&0xff)<<24)|(((int)bi[34]&0xff)<<16)| (((int)bi[33]&0xff)<<8)| (int)bi[32]&0xff;
    int nclrimp = (((int)bi[39]&0xff)<<24)| (((int)bi[38]&0xff)<<16)| (((int)bi[37]&0xff)<<8)| (int)bi[36]&0xff;
    Toolkit tk = Toolkit.getDefaultToolkit();
    if (nbitcount==24)
    * No Palette data for 24-bit format butscan lines are
    * padded out to even 4-byte boundaries.
    int npad = (nsizeimage / nheight) - nwidth * 3;
    if (npad == 4)
    npad = 0;
    int ndata[] = new int [nheight * nwidth];
    byte brgb[] = new byte [( nwidth + npad)* 3 * nheight];
    fs.read (brgb, 0, (nwidth + npad) * 3 *nheight);
    int nindex = 0;
    for (int j = 0; j < nheight; j++)
    for (int i = 0; i < nwidth; i++)
    ndata [nwidth * (nheight- j - 1) + i] = (255&0xff)<<24 | (((int)brgb[nindex+2]&0xff)<<16)|(((int)brgb[nindex+1]&0xff)<<8) | (int)brgb[nindex]&0xff;
    nindex += 3;
    nindex += npad;
    image = tk.createImage( new MemoryImageSource (nwidth, nheight, ndata, 0, nwidth));
    else if (nbitcount == 8)
    * Have to determine the number ofcolors, the clrsused
    * parameter is dominant if it is greaterthan zero. If
    * zero, calculate colors based onbitsperpixel.
    int nNumColors = 0;
    if (nclrused > 0)
    nNumColors = nclrused;
    else
    nNumColors = (1&0xff)<<nbitcount;
    // Some bitmaps do not have the sizeimagefield calculated// Ferret out these cases and fix 'em.
    if (nsizeimage == 0)
    nsizeimage =((((nwidth*nbitcount)+31) & ~31 ) >> 3);
    nsizeimage *= nheight;
    int tempSize = ((((nwidth*nbitcount)+31)& ~31 ) >> 3);
    tempSize *= nheight;
    // Read the palatte colors.
    int npalette[] = new int [nNumColors];
    byte bpalette[] = new byte[nNumColors*4];
    fs.read (bpalette, 0, nNumColors*4);
    int nindex8 = 0;
    for (int n = 0; n < nNumColors; n++)
    npalette[n] = (255&0xff)<<24|(((int)bpalette[nindex8+2]&0xff)<<16)|(((int)bpalette[nindex8+1]&0xff)<<8)|(int)bpalette[nindex8]&0xff;
    nindex8 += 4;
    * Read the image data (actually indices into the palette)//
    * Scan lines are still padded out to even 4-byte// boundaries.
    int npad8 = (nsizeimage / nheight) -nwidth;
    int ndata8[] = new int [nwidth*nheight];
    byte bdata[] = new byte[(nwidth+npad8)*nheight];
    fs.read (bdata, 0,(nwidth+npad8)*nheight);
    nindex8 = 0;
    for (int j8 = 0; j8 < nheight; j8++)
    for (int i8 = 0; i8 < nwidth;i8++)
    ndata8[nwidth*(nheight-j8-1)+i8] = npalette[((int)bdata[nindex8]&0xff)];
    nindex8++;
    nindex8 += npad8;
    image = tk.createImage( new MemoryImageSource (nwidth, nheight, ndata8, 0, nwidth));
    //support for 4Bpp bmps...
    else if (nbitcount == 4)
    int nNumColors = 0;
    if (nclrused > 0)
    nNumColors = nclrused;
    else
    nNumColors = (1&0xff)<<nbitcount;
    * Some bitmaps do not have the sizeimagefield calculated//
    * Ferret out these cases and fix 'em.
    if (nsizeimage == 0)
    nsizeimage =((((nwidth*nbitcount)+31) & ~31 ) >> 3);
    nsizeimage *= nheight;
    * Read the color table. BMP's always have the complete color
    * table when the number of colors used = 0
    int npalette[] = new int [nNumColors];
    byte bpalette[] = new byte[nNumColors*4];
    fs.read (bpalette, 0, nNumColors*4);
    int nindex8 = 0;
    for (int n = 0; n < nNumColors; n++)
    npalette[n] = (255&0xff)<<24|(((int)bpalette[nindex8+2]&0xff)<<16)|(((int)bpalette[nindex8+1]&0xff)<<8)|(int)bpalette[nindex8]&0xff;
    nindex8 += 4;
    * Read the image data (actually indicesinto the palette)//
    * Scan lines are still padded out toeven 4-byte// boundaries.
    int half = nwidth/2;
    if (nwidth%2 != 0)
    half++;
    int npad4 = (nsizeimage / nheight) -half;
    int tempSize = ((((nwidth*nbitcount)+31)& ~31 ) >> 3);
    tempSize *= nheight;
    int ndata4[] = new int [2*half*nheight];
    byte bdata[] = new byte [(half +npad4)*nheight];
    fs.read (bdata, 0, (half +npad4)*nheight);
    int nindex4 = 0;
    for (int j4 = 0; j4 < nheight; j4++)
    for (int i4 = 0; i4 < half; i4++)
    int i1 =nwidth*(nheight-j4-1)+(2*i4) ;
    ndata4 [i1] = npalette[((int)bdata[nindex4]&0xf0)>>4];
    ndata4 [i1+1] = npalette[((int)bdata[nindex4]&0xf)];
    nindex4++;
    nindex4 += npad4;
    image = tk.createImage( new MemoryImageSource (nwidth, nheight, ndata4, 0, nwidth));
    //support for monochrome...
    else if (nbitcount == 1)
    int nNumColors = 0;
    if (nclrused > 0)
    nNumColors = nclrused;
    else
    nNumColors = (1&0xff)<<nbitcount;
    * Some bitmaps do not have the sizeimagefield calculated
    * Ferret out these cases and fix 'em.
    if (nsizeimage == 0)
    nsizeimage =((((nwidth*nbitcount)+31) & ~31 ) >> 3);
    nsizeimage *= nheight;
    * Read the color table...
    * BMP's always have the complete color table when the number
    * of colors used = 0
    int npalette[] = new int [nNumColors];
    byte bpalette[] = new byte[nNumColors*4];
    fs.read (bpalette, 0, nNumColors*4);
    int nindex1 = 0;
    for (int n = 0; n < nNumColors; n++)
    npalette[n] = (255&0xff)<<24|(((int)bpalette[nindex1+2]&0xff)<<16)|(((int)bpalette[nindex1+1]&0xff)<<8)|(int)bpalette[nindex1]&0xff;
    nindex1 += 4;
    * Read the image data (actually indicesinto the palette)
    * Scan lines are still padded out to even 4-byte// boundaries.
    int limit = nwidth/8;
    int npad1 = (nsizeimage / nheight) -limit;
    if (nwidth%8 != 0)
    int tempSize = ((((nwidth*nbitcount)+31)& ~31 ) >> 3);
    tempSize *= nheight;
    int ndata1[] = new int[(nwidth*nheight)];
    byte bdata[] = new byte [(limit +npad1)*nheight];
    fs.read (bdata, 0, (limit +npad1)*nheight);
    nindex1 = 0;
    for (int j1 = 0; j1 < nheight; j1++)
    for (int i1 = 0; i1 < limit;i1++)
    int id1 =nwidth*(nheight-j1-1)+(8*i1);
    * here each bit of thearray should be converted to a
    * byte - 0 or 1
    ndata1 [id1] = npalette[(int)((bdata[nindex1]&0x80)>>7)];
    ndata1 [id1+1] = npalette[(int)((bdata[nindex1]&0x40)>>6)];
    ndata1 [id1+2] = npalette[(int)((bdata[nindex1]&0x20)>>5)];
    ndata1 [id1+3] = npalette[(int)((bdata[nindex1]&0x10)>>4)];
    ndata1 [id1+4] = npalette[(int)((bdata[nindex1]&0x8)>>3)];
    ndata1 [id1+5] = npalette[(int)((bdata[nindex1]&0x4)>>2)];
    ndata1 [id1+6] = npalette[(int)((bdata[nindex1]&0x2)>>1)];
    ndata1 [id1+7] =npalette [(int)(bdata[nindex1]&0x1)];
    nindex1++;
    nindex1 += npad1;
    image = tk.createImage( new MemoryImageSource (nwidth, nheight, ndata1, 0, nwidth));
    else
    image = (Image)null;
    fs.close();
    return image;
    catch (Exception e)
    e.printStackTrace();
    return (Image) null;
    Deepak
    [email protected]

  • Displaying a word file stored as BLOB in the database

    Post Author: Sathish K Sekar
    CA Forum: WebIntelligence Reporting
    Hi,
    Is it possible for us to display a word file which is stored as a BLOB object in  our database.
    We are using BO XIR2.
    Thanks in advance
    Sathish

    Post Author: InfluentialSoftware
    CA Forum: WebIntelligence Reporting
    Sathish - is this query specific to wanting to display a Word file or does it relate to how to display any BLOB objects in the database via Infoview?Thanks,Andy 

  • Display data in smartforms using report

    hi,
    i want to display data from smartform using report.
    i have a preview buttons in report when i select preview buttons displays in smarts
    regards
    amit

    design the smartform as per ur need and get  the function module generated by smartform and pass it to ur report programas below..
    case sy-ucomm.
    when 'smartform'.
    pass the f.m that is generated by system in smartforms
           CALL FUNCTION '/1BCDWB/SF00000265'
        EXPORTING
        ARCHIVE_INDEX              =
        ARCHIVE_INDEX_TAB          =
        ARCHIVE_PARAMETERS         =
        CONTROL_PARAMETERS         =
        MAIL_APPL_OBJ              =
        MAIL_RECIPIENT             =
        MAIL_SENDER                =
        OUTPUT_OPTIONS             =
        USER_SETTINGS              = 'X'
          DATE_L                     = s_fkdat-low
          DATE_H                     = s_fkdat-high
          PLANT_L                    = s_werks-low
          PLANT_H                    = s_werks-high
      IMPORTING
        DOCUMENT_OUTPUT_INFO       =
        JOB_OUTPUT_INFO            =
        JOB_OUTPUT_OPTIONS         =
        TABLES
          IFINAL                     = ifinal1[]
      EXCEPTIONS
        FORMATTING_ERROR           = 1
        INTERNAL_ERROR             = 2
        SEND_ERROR                 = 3
        USER_CANCELED              = 4
        OTHERS                     = 5
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    endcase.

  • How to open a BMP file in a JLabel???

    Hi all,
    My problem is that I want to set a BMP file as icon of a JLabel, but the Class ImageIcon doesn't support BMP files.
    Thank you all.
    Marco Aur�lio
    from Brazil
    we'll win the FIFA World Cup!!

    The easiest way to do that is to get a graphics package that can convert a BMP file to a JPG file. Some versions of Microsoft Paint will do that, but you should be able to find another one if you need it.
    I hope Brazil wins, but if they don't it will be because the referees give it to Korea.

  • How to display the HTML File Titles instead of File Names

    Hello All,
    I want to display the HTML file titles instead of File names in the Search Results. I've tried to give this command in the 'Visible Properties' in the 'SearchResourceRenderer' as:-
    Visible Properties: rnd:displayTitle
    However this is not working for me. If anyone has an idea of what to pass here or any other alternative to display the Titles.
    Regards
    Vaib

    Summary of steps:
    1) Standard Layout Set used: SearchResultLayoutSet
    2) Create a new layout set using ADVANCED COPY
    3) Change properties as you require
    4) Next modify the search OTH file to reflect this newly created Layout Set (under KM > root > etc > oth > search.oth edit xml file property rndLaoutSet from SearchResultLayoutSet to MyCustomSearchResultLayoutSet)
    5) Check in the document to complete the editing process if Edit Locally is used!
    6) Lastly, activate the OTH file by –
    •     Setting Debugging settings via Debugging Settings
    •     Performing a normal search
    •     Clicking Rendering information and then following link OTH Overview click on Reload
    7) Reload above reloads the OTH file and performing search again will yield the desired result
    8) To turn off the Rendering Information link remove the user id from Debugging Settings.
    Cheers
    Ankit

  • Display Vendor name in vendinvoice Report

    hi expert i have little query , in ax 2012 R3 there is report vend-invoice Report, actually i want to display vendor name on that report,by default there is no vendor name,for this i just added vendor name(extended data type) in vendinvoice temp table,and
    then just reference that field in class of vendinvoice,rebuild the ax,and in vs2012  add that field in report design ,and depolye ,but still the vendor name not does not showed in report...plz guide me..
    Regards.

    Hi Munsifuv,
    Is this a question about Power Query? If not, I'd recommend directing your question to a Dynamics Ax forum.
    Ehren

  • Attaching a text/pdf file in report builder

    i have develop account package for that i want to attach a text file in report builder. each account have its seprate text file.should it is possible? How?
    please give me reply on [email protected]
    thank you
    Message was edited by:
    user561602

    Hi (datasci),
    You can create a linked server in SSMS, then create a procedure to join three sheets. Then you can call the procedure in a dataset.
    As we tested in our environment, we create a linked server and the procedure like below:
    --linked server
    EXEC sp_addlinkedserver
    @server = 'ExcelServer',
    @srvproduct = 'Excel',
    @provider = 'Microsoft.ACE.OLEDB.12.0',
    @datasrc = 'c:\Book3.xls.xlsx', -- the path in the server where SQL server locates
    @provstr = 'Excel 12.0;IMEX=1;HDR=YES;'
    EXEC sp_addlinkedsrvlogin 'ExcelServer', 'false'--, 'sa', 'Admin', null
    go
    --procedure
    CREATE PROC proce2
    as
    SELECT a.Name,a.Amount,b.PtNo,b.value,c.Gender
    FROM ExcelServer...[Sheet1$] as a
    left join ExcelServer...[Sheet2$] as b on a.Name =b.Name
    left join ExcelServer...[Sheet3$] as c on c.PtNo =b.PtNo
    Then we call the procedure in the dataset, we get the expected result:
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Want to Display only Subtotals

    Hi All,
    I Have report which Dispays Segment wise in that currency wise totals.
    I want to Display only Subtotals in the Report  currency wise.
    Not to Display grand Total and each line items.
    Can any help me how to go ahead.
    Points will be rewarded
    Thanks in advacnce
    Ramesh

    in the layout click on the layout symbol and check the subtotal checkbox for the filed you want to display the subtotals.. sort as per the sequence you want and save the layout...
    this can be done if the field catalog is defined to do sum for that fields..

  • Display of HTML file titles instead of File Names

    Hello All,
    I want to display the HTML file titles instead of File names in the Search Results. I've tried to give this command in the 'Visible Properties' in the 'SearchResourceRenderer' as:-
    Visible Properties: rnd:displayTitle
    However this is not working for me. If anyone has an idea of what to pass here or any other alternative to display the Titles.
    Regards
    Vaib

    Summary of steps:
    1) Standard Layout Set used: SearchResultLayoutSet
    2) Create a new layout set using ADVANCED COPY
    3) Change properties as you require
    4) Next modify the search OTH file to reflect this newly created Layout Set (under KM > root > etc > oth > search.oth edit xml file property rndLaoutSet from SearchResultLayoutSet to MyCustomSearchResultLayoutSet)
    5) Check in the document to complete the editing process if Edit Locally is used!
    6) Lastly, activate the OTH file by –
    •     Setting Debugging settings via Debugging Settings
    •     Performing a normal search
    •     Clicking Rendering information and then following link OTH Overview click on Reload
    7) Reload above reloads the OTH file and performing search again will yield the desired result
    8) To turn off the Rendering Information link remove the user id from Debugging Settings.
    Cheers
    Ankit

Maybe you are looking for

  • Downloads Folder No Longer Jumps Up When Saving Attachments

    When saving attachments in Mail, my downloads folder on the Doc used to jump up a couple of times when I hit "save" from within an email that I received to signify that I just saved it into that folder. However, for no rhyme or reason, the downloads

  • Code is missing

    Hi All, i am facing a weird issue.. i have developed a program (DEV) from scratch and trnsaported to another client ( TST)and got some changes and done the changes in DEV and again transported to it TST.so i got totally two transports and two version

  • Add a New Blackberry Device Screen

    The Add a New Blackberry Device screen stays open with the green wait circle spinning around and around while it says initializing your device. Why won't it sync?

  • Time out connection in the classes12.zip

    Hello, How can I change the time out connection to my database in Java ? I use the JDBC thin driver (classes12.zip) to connect to an 8.1.6 standard Oracle edition on an NT Server. I tested a network problem connection removing the network cable and t

  • Audio Instr records but does not play back in Logic Pro 9

    Hi all.... recently upgraded from a PPC G5 to an iMac 27"" 2.8 GHz Intel i7 w/4GB mem. was running Logic 7.2,now Pro 9. Here's my prob. After opening an old session in LP9 and recording an audio instrmnt (no prob setting up trk or recording) the trk