Sign UpSign Up   Sign InSign In Welcome Guest,
Live Chat Live Chat

BackImageAttributes attribute ?

Last post 11-16-2009, 5:17 AM by aspose.notifier. 8 replies.
Sort Posts: Previous Next
  •  06-30-2009, 3:05 AM 186007

    BackImageAttributes attribute ?

    Hi,

    What is the purpose of a the BackImageAttributes property on the TableItemStyle class ? I have set a BackImageUrl and I want the image to not be repeated within the cell.

    Thanks.

     
  •  06-30-2009, 5:13 AM 186024 in reply to 186007

    Re: BackImageAttributes attribute ?

    Hi,

    We have tested the following code, it works. But when we input a value in the cell and move the focus from it, the background image will be lost. This is a bug and we will fix it soon.

     

    if (!IsPostBack)

            {

                grdWeb.WebWorksheets[0].Cells[0, 0].Style.BackImageUrl = "/agw_client/b2.gif";

                grdWeb.WebWorksheets[0].Cells[0, 0].StringValue = "fff";

            }

     

    Thank you.


    Amjad Sahi
    Support Developer,
    Aspose Sialkot Team
    Contact Us
     
  •  06-30-2009, 5:36 AM 186027 in reply to 186024

    Re: BackImageAttributes attribute ?

    Thanks,

    But what's the purpose of the BackImageAttributes property ?

     
  •  07-01-2009, 1:39 AM 186272 in reply to 186027

    Re: BackImageAttributes attribute ?

    Attachment: Present (inaccessible)

    Hi,

    The BackImageAttributes property is used to specify some background image attributes, it supports “background-position” and “background-repeat” attributes. Please try the attached version, we have fixed the previous bug in it.  

     

    Please try the following code:

     

    if (!IsPostBack)

            {

                grdWeb.WebWorksheets[0].Cells[0, 0].StringValue = "fff";

                grdWeb.WebWorksheets[0].Cells[0, 0].Style.BackImageAttributes = "right|no-repeat";

                grdWeb.WebWorksheets[0].Cells[0, 0].Style.BackImageUrl = "/agw_client/b2.gif";

               

            }

     

     

    Please search MSDN to find the possible values of the two properties.

     

    Thank you.


    Amjad Sahi
    Support Developer,
    Aspose Sialkot Team
    Contact Us
     
  •  07-01-2009, 2:52 AM 186287 in reply to 186272

    Re: BackImageAttributes attribute ?

    Thanks. It all works great. The only remaining problem is that the background image is not displayed when the Grid is exported to an Excel file.
     
  •  07-01-2009, 4:13 AM 186298 in reply to 186287

    Re: BackImageAttributes attribute ?

    Hi,

    Well, I am afraid, the feature of exporting cell background image to excel file is not supported at the moment.

    Sorry for any inconvenience.


    Amjad Sahi
    Support Developer,
    Aspose Sialkot Team
    Contact Us
     
  •  07-01-2009, 4:34 AM 186304 in reply to 186298

    Re: BackImageAttributes attribute ?

    Thanks. No problem. Is that something you plan to integrate in the future ?
     
  •  07-02-2009, 2:27 AM 186538 in reply to 186304

    Re: BackImageAttributes attribute ?

    Hi,

    Well, we don't have such plan for it and above all, MS Excel does not have the relative feature.

    Thanks for your understanding! 


    Amjad Sahi
    Support Developer,
    Aspose Sialkot Team
    Contact Us
     
  •  11-16-2009, 5:17 AM 208056 in reply to 186007

    Re: BackImageAttributes attribute ?

    The issues you have found earlier (filed as 9521) have been fixed in this update.


    This message was posted using Notification2Forum from Downloads module by aspose.notifier.
     
View as RSS news feed in XML