Recent version of the Adhoc does not support customerized style directly, but we have another way to control the styles.
The most common way is showed as below :
- 1.Defined a css class
- 2.Place a Panel to your WebForm .
- 3.Set the CssClass property of the panel to the css class your defined in 1 .
- 4.Drap the Aspose.AdHoc component into the Panel.
Html Code Example:
......
<head>
......
<style>
.myCss input{color:Red;background-color:Gainsboro;border-color:Red;border-width:2px;border-style: Dashed;font-weight:bold;text-decoration:underline;}
</style>
</head>
......
<asp:panel id="pnlHolder" runat="server" CssClass="myCss" >
<cc1:AdHoc id="ahMain" TOP: 213px" runat="server" DynamicWhereCompiling="True" AdvancedStringOperands="False" ShowRuleOperatorButtons="True" ShowCancelButton="True" ShowSelectWindow="True" ></cc1:AdHoc>
</asp:panel>
......
And the effect of the above code is as the picture below:
Notes
Further more, in step 1, the above html code just defined ".myCss input{.....}" , there for , only the appearance of the buttons will be set.If you want to set the Fields Select area, you can defined a sub class ".myCss select{...the style code...}".
In step 2, you can also use "<td>", and then drap the AdHoc into the td cell, and set the class of the "<td>" tag, analogously, some controls else can be use to instead panel, such as PlaceHolder/the "<DIV>" tag etc.