Problems with doc.printout() and zedgraph
:wave: hello , I'm the classmate off "Gleba"
I use alsa microsoft visual basic express edition (2005)
I also use zedgraph
my problem is that :
I print my graph out with microsoft word (in word you must create booklet indicators to link them)
this is my code:
Code:
Code:
Dim wordapp As New Word.Application
doc = wordapp.Documents.Add("C:\Documents and Settings\Proximedia\Bureaublad\horizontale en schuine worp\Oefening op een horizontale worp.doc")
doc.Bookmarks.Item("beginv").Range.Text = v
doc.Bookmarks.Item("hoogte").Range.Text = txthoogte.Text
doc.Bookmarks.Item("tottijd").Range.Text = txttott.Text
doc.Bookmarks.Item("totafstand").Range.Text = txttotafst.Text
doc.Bookmarks.Item("tekeninggrafiek").Range.Text = zg1.Created
doc.WebPagePreview()
CType(doc, Word.Document).Close(False)
CType(wordapp, Word.Application).Quit()
Can someone say to me what I must change on the code with zg1.created ?
:wave:
Re: Problems with doc.printout() and zedgraph
If you can save zg1.Created to a file you would then be able to use doc.Bookmarks.Item("tekeninggrafiek").Range.InsertFile(FileName, Range, ConfirmConversions, Link, Attachment)
The .Text property of the Range object is expecting a text value not an image or some other type of object.
Re: Problems with doc.printout() and zedgraph
but there are so many ways to get that
can you explain how ?
Re: Problems with doc.printout() and zedgraph
I am not familiar with "zg1" so I have no idea what and how its used.
If you can save your chart to an image file then its easy to insert into a bookmark.