It seems that when you use the C# code snippet burron in your posting it removes line breaks and generates the code as a single line with only the natural html wrapping being used.
e.g.
Inside the code blockLine 1<br />Line 2<br />Line 3<br />Line 4
Outside the code block
Line 1
Line 2
Line 3
Line 4
hi ojo,
Now, We are fixing the bugs, please tell me others bug in the new forums.
HREF’s are not interperated propperly as in your forum signature.
hi ojo,
The forums support BBCode, so I modified my signature like below.
Dave Dai
Lead Developer
Aspose Hangzhou Team
[ URL =http://www.aspose.com/Corporate/Teams/Hangzhou/Aboutus.html]About Us[ /URL ]
[ URL =http://www.aspose.com/Corporate/Teams/Hangzhou/Contactus.html]Contact Us[ /URL ]
Mode details please check:
http://www.aspose.com/forums/languages/en-US/docs/faq.aspx
It seems that when you use the C# code snippet burron in your posting it removes line breaks and generates the code as a single line with only the natural html wrapping being used. |
hi ojo, Step 1: Create Excel object [C#] [Visual Basic] If you have purchased a license, you should set license like this: [Visual Basic] Step 2: Get the Cell object in a worksheet. [Visual Basic] Step 3: Put the "Hello World!" string to the cell. [Visual Basic] Step 4: Save the spreadsheet [VisualBasic]
Did you try pasting by using the freetextbox toolbar button () for pasting?
Example:
There are 4 steps to create a simple Hello World Excel document through API.
Excel excel1 = new Excel();
Dim Excel1 As Excel = New Excel()
[C#]
Excel.SetLicense(licensefile);
Excel.SetLicense(licensefile)
[C#]
Cell cell1 = excel1.Worksheets[0].Cells["A1"];
Dim Cell1 As Cell = Excel1.Worksheets(0).Cells("A1")
[C#]
cell1.PutValue("Hello World!");
Cell1.PutValue("Hello World!")
[C#]
excel1.Save("C:\\HelloWorld.xls", FileFormatType.Default);
Excel1.Save("C:\\HelloWorld.xls", FileFormatType.Default)
Regardless of pasting the following should be Testing on two separate line but it is not. The code language block was entered using the c# toolbar button. is there a special newline character which needs to be used instide the code blocks, I have simpley use the enter key to create new lines within the code block.
Testing Testing |