Discussion Groups

All Discussion Groups » Autodesk DWF Viewer

Thread: Printer service


Permlink Replies: 6 - Last Post: Nov 12, 2009 6:22 AM Last Post By: whtank Threads: [ Previous | Next ]
jkapgs

Posts: 5
Registered: 10/06/09
Printer service
Posted: Oct 8, 2009 7:53 AM
  Click to reply to this thread Reply
Hallo,

I want to write .Net Win service. This service open a DWF, make something and print document.

I want to use PrintEx or DrawToDC functions ( EPlotViewer.IAdPageViewer.PrintEx function from BatchPrinter).

I have studied BatchPrinter 1.8. I can't able print document without a CExpressViewerControl class. I can't make EPlotViewer(EPlotViewer.IAdPageViewer) class.

Is it good way to use this API for "not control" printing?
Do you any advice for me: How to print DWF without "control" class?

Thank you for your help.

JKA
jkapgs

Posts: 5
Registered: 10/06/09
Re: Printer service
Posted: Oct 9, 2009 11:22 AM   in response to: jkapgs in response to: jkapgs
  Click to reply to this thread Reply
I'm sorry,

is this question clear? Is this thred appropriate for this question?

Does someone experience with "not control" print DWF files?

Thank a lot.

JKA
whtank

Posts: 18
Registered: 06/17/09
Re: Printer service
Posted: Oct 29, 2009 1:29 AM   in response to: jkapgs in response to: jkapgs
  Click to reply to this thread Reply
Thank you for your question.

I am not sure I have understood your question.

If you want to print DWF file without creating any control object, you can do following:

1. Create a file to describe what and how you will print. More information about the file format please refers to the blog.

2. Create a SHELLEXECUTEINFO structure and fill this structure like

SHELLEXECUTEINFO shInfo;

...

shInfo.lpVerb = L"open";

shInfo.lpFile = wcExePath; // the exe path of Autodesk Design Review

shInfo.lpParameters = printdescfile; // the file path described on the step 1.

shInfo.nShow = SW_SHOWNOACTIVATE;

shInfo.fMask = SEE_MASK_NOCLOSEPROCESS;

3. Create a new Design Review process by calling ShellExecuteEx(&shInfo).

4. New process will print as the file description which you support on step 1.

Please let me know if I can be of any further help.

-Tank
jkapgs

Posts: 5
Registered: 10/06/09
Re: Printer service
Posted: Nov 6, 2009 7:35 AM   in response to: whtank in response to: whtank
  Click to reply to this thread Reply
Thank for your answar.
It is bpj file what decribe printing ( point1 of your answer)?

I have to make some modification in dwf before printing. The task list is:
1. draw water-mark into DWF
2. draw stamp into DWF
3. select appropriate printer
4. print dwf


My question is: How to make point 1 and 2?

Thank a lot for your answer.
whtank

Posts: 18
Registered: 06/17/09
Re: Printer service
Posted: Nov 9, 2009 5:23 AM   in response to: jkapgs in response to: jkapgs
  Click to reply to this thread Reply


Yes, it is BPJ file.

With regard to the two points you would like to make, you can use markup tools in Autodesk Design Review (ADR).

You can download the latest ADR version from here.

Please let me know if I can be of any further help.

-Tank

jkapgs

Posts: 5
Registered: 10/06/09
Re: Printer service
Posted: Nov 10, 2009 3:45 PM   in response to: whtank in response to: whtank
  Click to reply to this thread Reply
Thank for your answar.

I've looked for API for ADR - 2010, but there aren't any API for markup tools. Is this posible to make this by service?

If not, how can I make this?
whtank

Posts: 18
Registered: 06/17/09
Re: Printer service
Posted: Nov 12, 2009 6:22 AM   in response to: jkapgs in response to: jkapgs
  Click to reply to this thread Reply
ADR 2010 has not supported API to create markups.

However since our nice customer has reported this requirement we will log a new issue in the WISHLIST database.

Edited by: whtank on Nov 12, 2009 6:22 AM