We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Problem with DocIO and Bullets

I run the example for Bullets and Numbering.
First of all it fails to complile in the following statement:
section1.Columns.Add(new Column());
I have changed that to:
section1.Columns.Add(new Column(document));
Now it compiles and runs.
However on te following statement the example craches with an "Object reference not set..." exception:
paragraph.ListFormat.ListType = LT;
- version: 4.2.0.60
- OS is Windows 2000
- Visual Studio 2005
- winforms and aspx.

3 Replies

DK Dhivya K Syncfusion Team January 23, 2007 01:04 PM UTC

Hi Sannes,

Thank you for your information regarding this issue. I tried testing this issue. I am afraid. I am unable to reproduce the issue in Vs2005.

Here is a sample for your reference:
sample.zip

Please take a look into it and let me know if I am missing something in my sample.

Regards,
Dhivya.


AS A. Sannes January 24, 2007 08:19 AM UTC

Yout example produces the same error.
Are you also using version 4.2.0.60?

In the mean time I tested something and found out that if I replace LT in the statement
paragraph.ListFormat.ListType = LT;
by (ListType)3 then it will work, while the enum only containt 0,1 and 2!

I think something is wrong in my version.
Now it works using my work around I have an other question:
How can you change the size of the identation?


>Hi Sannes,

Thank you for your information regarding this issue. I tried testing this issue. I am afraid. I am unable to reproduce the issue in Vs2005.

Here is a sample for your reference:
sample.zip

Please take a look into it and let me know if I am missing something in my sample.

Regards,
Dhivya.


DK Dhivya K Syncfusion Team January 26, 2007 01:47 PM UTC

Hi Bert,

Thank you for the update. Glad to know that your resolved the issue with bullets. Could you please consider upgrading to 4.4 version as it includes some fixes and features?

Regarding indentation, you can change the indent using ParagraphFormat as follows

paragraph.ParagraphFormat.LeftIndent=54f;

Please let me know if you have any other queries.

Regards,
Dhivya.

Loader.
Live Chat Icon For mobile
Up arrow icon