Excel Component????

Genom

New member
Joined
Feb 8, 2007
Messages
2
Programming Experience
1-3
I need an freeware excel component which will be used for design in runtime. I will print it too. I have found a component from Microsoft Office Web Components but I cant print my design from this component.
1-Do you know how to do it?:confused:
2-Do you know a better freeware cfomponent?:confused:
Thanks for Help!
 
I need a component which is like excel or its self. But want to use it without installing microsoft office because my software will work on other computers too. And I will print it too. I have found Microsoft Office Web Components. There is already an excel component but I cant print it in VB.Net. Problem is that I cant show the "sheet" to printdocument. My printing code is...
visual basic code: Private Sub PrintButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PrintButton.Click
PrintText()
End Sub

Private Sub PrintText()
Dim doc As PrintDocument = New PrintDocument
Dim printer As PrintDialog = New PrintDialog

printer.Document = doc
printer.ShowDialog()

AddHandler doc.PrintPage, AddressOf PrintPageHandler

doc.Print()
End Sub

Private Sub PrintPageHandler(ByVal sender As Object, ByVal e As PrintPageEventArgs)
Dim canvas As Graphics = e.Graphics
canvas.DrawString(PrintTextBox.Text, _font, _brush, 0, 0)
End Sub
End Class​

Is there any alternative freeware component or an alternative code?
 
the freely available Microsoft Excel Viewer can be used to view and print excel sheets but i'm not sure if it can be used programmatically.. maybe someone else here knows?
 
Back
Top