Print custom and current page?
Asked Answered
C

1

9

I am following this Edraw Link.

I was able to search for one of my problem using this LINK.

My code now is

  With AxEDOffice1
     .PrintOut(EDOfficeLib.WdPrintOutRange.wdPrintRangeOfPages, 1, 1, "", 2)
           // from page , to page , (Page as Object) this one is don't know how to use, number of copies //
  End With

 //This one is for next page but its not working. I print preview first and click a button using code below.
 With AxEDOffice1
        .SlideGotoNext()
    End With

My question

  1. if I set the range of the page to be print can I Print Preview it?
  2. How to print current page? (I see this code .PrintOut(EDOfficeLib.WdPrintOutRange.wdPrintCurrentPage)) but the problem is how to navigate to next / previous pages.
  3. How to jump into a specific page?
Cycle answered 23/1, 2017 at 3:0 Comment(0)
R
4

Edraw library is built using Microsoft.Office.Interop.Word Library so PrintOut Method is the same as found Here (MSDN article above is very useful to your case)

Side Note: To get more attention don't ask anymore about Edraw when things can be done when asking on Microsoft.Office.Interop.Word because it is used by a wide range of people And supported by microsoft.

  • Use AxEDOffice1.ActiveDocument.PrintOut Method

  • To specify Print range you have to select EDOfficeLib.WdPrintOutRange.wdPrintFromTo option and specify From and To parameter. (Begin page and end page)

These reference will help you also:

Hope i helps

Retouch answered 16/2, 2017 at 21:34 Comment(6)
Thanks. My current problem now is how to jump to a specific page and the number 1 from my question.Cycle
@Kira don't ask anymore about Edraw library because you will not be answered. To get more attention ask about Interop.Word because it is used by a wide range of people And supported by microsoft.Retouch
@Kira i will search for your issues. Hope i can helpRetouch
Okay I will. Thanks.Cycle
@Kira i am really sorry i didn't find a solution for your issues. Maybe openning asking a new question (on Interop.Word) could get more attention. and a more detailed answer from an expert. Thx for accepting my answer even that i doesn't deserve itRetouch
can you give me a link for Interop.Word?Cycle

© 2022 - 2024 — McMap. All rights reserved.