FarPoint.Win.Spread.CellType.NumberCellType n = new FarPoint.Win.Spread.CellType.NumberCellType();
n.FractionMode = true;
n.DecimalPlaces = 2;
n.FractionDenominatorDigits = 2;
n.FractionCustomFormat = "# ??/??";
n.FractionRenderOnly = true;
n.FractionDenominatorPrecision = FarPoint.Win.Spread.CellType.FractionDenominatorPrecision.Hundredths;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = n;
fpSpread1.ActiveSheet.Cells[0, 0].Value = 5.004;
Dim n As New FarPoint.Win.Spread.CellType.NumberCellType()
n.FractionMode = True
n.DecimalPlaces = 2
n.FractionDenominatorDigits = 2
n.FractionCustomFormat = "# ??/??"
n.FractionRenderOnly = True
n.FractionDenominatorPrecision = FarPoint.Win.Spread.CellType.FractionDenominatorPrecision.Hundredths
fpSpread1.ActiveSheet.Cells(0, 0).CellType = n
fpSpread1.ActiveSheet.Cells(0, 0).Value = 5.004