Change fontstyle for a cell in a table shape


Author
Message
Eric Sweet
Eric Sweet
Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)
Group: Forum Members
Posts: 14, Visits: 1
Hi,

I'm trying to make the title cell of a table shape bold, but I keep getting an error.

The code I'm using is:
shape(1, 0).Style.TextStyle.FontStyle = New NFontStyle("Arial", 10, FontStyle.Bold)

I'm getting a NullReference exception for that line of code:
Object reference not set to an instance of an object.

I'm stumped because this is very similar to code in the samples used to set fillstyle and strokestyle.

Any help greatly appreciated.

Thanks,
Eric
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search