DWF Viewer (Read Only)
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 7
jkapgs
1208 Views, 6 Replies

Printer service

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
6 REPLIES 6
Message 2 of 7
jkapgs
in reply to: jkapgs

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
Message 3 of 7
whtank
in reply to: jkapgs

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


Tank
SW Engineer
PSEB-GE-ACRD-CPG
Autodesk, Inc.

Message 4 of 7
jkapgs
in reply to: jkapgs

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.
Message 5 of 7
whtank
in reply to: jkapgs

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



Tank
SW Engineer
PSEB-GE-ACRD-CPG
Autodesk, Inc.

Message 6 of 7
jkapgs
in reply to: jkapgs

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?
Message 7 of 7
whtank
in reply to: jkapgs

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


Tank
SW Engineer
PSEB-GE-ACRD-CPG
Autodesk, Inc.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report