.NET
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
*pkirill
RefreshPlo tDevice Problems
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
85 Views, 3 Replies
07-20-2005 08:12 AM
I've put together a little plot routine but I'm
having problems with the objLayout.RefreshPlotDeviceInfo() part.
having problems with the objLayout.RefreshPlotDeviceInfo() part.
If I include this in my code, any drawing that has
a default printer that is not one of ours will throw an exception. If I remove
this from the code, any drawing with the plotter set to none will throw an
exception. It seems that if the user has the default printer set to one of
our devices, and I leave this out of my code it all works fine.
a default printer that is not one of ours will throw an exception. If I remove
this from the code, any drawing with the plotter set to none will throw an
exception. It seems that if the user has the default printer set to one of
our devices, and I leave this out of my code it all works fine.
I think including the refresh is a good thing, but
not if it doesn't work. Is there a way to force the default printer before
I try my plot code?
not if it doesn't work. Is there a way to force the default printer before
I try my plot code?
Can anyone help me work through this issue?
Any help is always appreciated!
Any help is always appreciated!
*Danny P.
Re: RefreshPlo tDevice Problems
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-20-2005 03:51 PM in reply to:
*pkirill
Import a page setup (or use an existing one in the drawing) that has one
of your plotters specified. In the layout object, use the CopyFrom
method and pass the page setup name as the parameter. That's what I
would do with ActiveX and I would think the process should be the same here.
Hope that helps,
Danny Polkinhorn
WATG
Honolulu
pkirill wrote:
> I've put together a little plot routine but I'm having problems with the
> objLayout.RefreshPlotDeviceInfo() part.
>
> If I include this in my code, any drawing that has a default printer
> that is not one of ours will throw an exception. If I remove this from
> the code, any drawing with the plotter set to none will throw an
> exception. It seems that if the user has the default printer set to one
> of our devices, and I leave this out of my code it all works fine.
>
> I think including the refresh is a good thing, but not if it doesn't
> work. Is there a way to force the default printer before I try my plot
> code?
>
> Can anyone help me work through this issue? Any help is always appreciated!
of your plotters specified. In the layout object, use the CopyFrom
method and pass the page setup name as the parameter. That's what I
would do with ActiveX and I would think the process should be the same here.
Hope that helps,
Danny Polkinhorn
WATG
Honolulu
pkirill wrote:
> I've put together a little plot routine but I'm having problems with the
> objLayout.RefreshPlotDeviceInfo() part.
>
> If I include this in my code, any drawing that has a default printer
> that is not one of ours will throw an exception. If I remove this from
> the code, any drawing with the plotter set to none will throw an
> exception. It seems that if the user has the default printer set to one
> of our devices, and I leave this out of my code it all works fine.
>
> I think including the refresh is a good thing, but not if it doesn't
> work. Is there a way to force the default printer before I try my plot
> code?
>
> Can anyone help me work through this issue? Any help is always appreciated!
*Mike Tuersley
Re: RefreshPlo tDevice Problems
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-21-2005 07:59 AM in reply to:
*pkirill
objLayout.ConfigName = "HP DesignJet 755CM"
objLayout.RefreshPlotDeviceInfo()
-- Mike
___________________________
Mike Tuersley
___________________________
the trick is to realize that there is no spoon...
objLayout.RefreshPlotDeviceInfo()
-- Mike
___________________________
Mike Tuersley
___________________________
the trick is to realize that there is no spoon...
*pkirill
Re: RefreshPlo tDevice Problems
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-21-2005 09:53 AM in reply to:
*pkirill
Doh!
Thanks for the kick start!
Paul
"Mike Tuersley" wrote in message
news:4907627@discussion.autodesk.com...
objLayout.ConfigName = "HP DesignJet 755CM"
objLayout.RefreshPlotDeviceInfo()
-- Mike
___________________________
Mike Tuersley
___________________________
the trick is to realize that there is no spoon...
Thanks for the kick start!
Paul
"Mike Tuersley"
news:4907627@discussion.autodesk.com...
objLayout.ConfigName = "HP DesignJet 755CM"
objLayout.RefreshPlotDeviceInfo()
-- Mike
___________________________
Mike Tuersley
___________________________
the trick is to realize that there is no spoon...
