Skip to main content
June 21, 2012
Question

How to draw vertical lines that are visible in preview mode?

  • June 21, 2012
  • 2 replies
  • 1298 views

Hi all,

I need to draw vertical lines on a document. The lines must be same as we draw using line tool.

I could draw the line using CreateLineSpline() method of IPathUtils.

The problem is that these lines are not visible in preview mode. Please tell how can we make lines that are visible in preview mode.

Please help, I'm running out of time.

This topic has been closed for replies.

2 replies

durgeshj41842015
Inspiring
March 1, 2016

hi Daves,

can You Explain, how to  implement CreateLineSpline() function. because i don't understand how to take point of x/y coordinate and which variable are use for those variable

Inspiring
June 22, 2012

CodeSnippetRunner has the answer:

Utils<IPathUtils>()->CreateLineSpline

June 22, 2012

I'm also using the same function,

Utils<IPathUtils>()->CreateLineSpline(::GetUIDRef(spreadLayer), pathPointList, INewPageItemCmdData::kDefaultGraphicAttributes);

But the problem is that these lines are not visible in preview mode. Can you tell me what I'm missing.

Jongware
Community Expert
Community Expert
June 23, 2012

As I understand it, this command should create a regular path which you can stroke, fill, select etc.

If it's visible in normal mode but not in Preview, did you forget to set a stroke or fill to it?

Can you select it and *then* set a stroke or fill to it?