Stencil path and Page Size problem with Automation in VC++ 6.0

S

sunil

I am using Visio 2000, with our software to provide automation (using
VC++ 6.0)

I am facing two problem currently:

1. i want to use my own stencils to be used in drawing for that,
i am using function GetStencilPaths() of IVApplication object to
retrive current stencil path. this function return CString object, now
i am conctenating my stencil path to the same string and using
SetStencilPaths() function with this value.

this is causing problem in object destruction (CString) and displays
a voilation occured message.

2. My second proble is that, my application works fine on those m/c on
which printer is installed, but if i try to run on m/c on which no
printer installed than, it gives access voilation message.
i tried to detect and found that i should set page size in my
application but i am unable get any alternative. there is only
SetPaperSize() function is available which works only in case when
printer is installed.

Please suggest me solu for above problem, how can i resolve these.
 

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