Hiding a line.

Z

ZyRaIN

Hi guys,

I've fixed the trimmed image problem by drawing a box around the real
size of the image, but I dont know how to hide this box ? Programming
in vb.net so would love to get an example to do it in there - if its
possible ?

Here is my current code..

pageHeight = page.PageSheet.Cells("PageHeight").Result("inch")
pageWidth = page.PageSheet.Cells("PageWidth").Result("inch")

Dim dLine As Microsoft.Office.Interop.Visio.Shape
dLine = page.DrawLine(0, 0, pageWidth, pageHeight)

Sincerely

ZyRaIN
 
P

Paul Herber

Hi guys,

I've fixed the trimmed image problem by drawing a box around the real
size of the image, but I dont know how to hide this box ? Programming
in vb.net so would love to get an example to do it in there - if its
possible ?

Here is my current code..

pageHeight = page.PageSheet.Cells("PageHeight").Result("inch")
pageWidth = page.PageSheet.Cells("PageWidth").Result("inch")

Dim dLine As Microsoft.Office.Interop.Visio.Shape
dLine = page.DrawLine(0, 0, pageWidth, pageHeight)

dLine.cellsSRC(visSectionObject, visRowLine, visLineWeight).SetFormula
("=0"))

However, if you are still trying to create the export output (thread:
Page size problem..) then this won't fix your problem. The export
function will still clip your diagram at the extent of the visible
area.

Firstly, you will need a box rather than a line.
Secondly, set the line colour to almost but not quite white.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top