可以在客户端调用SizeToFit来实现:
- Example 1
- This is a sample that contains the method.
- <SCRIPT language=javascript>
- function FitSpread()
- {
- FpSpread1.SizeToFit()
- }
- </SCRIPT>
- Example 2
- This is a sample that uses the method.
- <SCRIPT language=javascript>
- function FitSpread()
- {
- var s=document.getElementById("FpSpread1");
- if(document.all)
- s.SizeToFit(s.ActiveCol);
- else
- s.SizeToFit(s.GetActiveCol());
- }
- </SCRIPT>
复制代码 |