Alpha Video Training
Results 1 to 4 of 4

Thread: <object>.saveas()

  1. #1
    Member
    Real Name
    Florian
    Join Date
    Dec 2008
    Posts
    56

    Default <object>.saveas()

    Hi,

    I am using the <OBJECT>.SAVEAS() to turn a a letter and a report to pdf, this works great, I then use pdf_merge to write the three saved as pdf into one pdf file. Great, the only thing I would like to do is suppress the print dialog box that comes up whilst it is writing the file.

    Any ideas

    see code below: (test code at this point)
    record_number = current_record_number()
    query.filter = "recno() = " + record_number
    query.order = ""


    :Report.SaveAs("memberset","PDF",query.filter,query.order,"reporta",.F.)
    :Report.SaveAs("invoice","PDF",query.filter,query.order,"reportb",.F.)
    :Letter.SaveAs("Lettera","PDF",query.filter,query.order,"lettera",.F.)


    a = pdf_pagecount("reporta.pdf")
    b = pdf_pagecount("reportb.pdf")
    pdf_append("reporta.pdf", "reportb.pdf", "combineda.pdf")
    if pdf_append("combineda.pdf", "lettera.pdf", "c:\combined.pdf") = .T. then
    x = pdf_pagecount("c:\combined.pdf")
    nm = "total: " + x + " a: " + a + " b: " + b
    msgbox(nm)

    else
    msgbox("eror combining")
    end if

  2. #2
    "Certified" Alphaholic Stan Mathews's Avatar
    Real Name
    Stan Mathews
    Join Date
    Apr 2000
    Location
    Bowling Green, KY
    Posts
    25,119

    Default Re: <object>.saveas()

    Uncheck Show Printer Setup on Print.

    There can be only one.

  3. #3
    Member
    Real Name
    Florian
    Join Date
    Dec 2008
    Posts
    56

    Default Re: <object>.saveas()

    Thanks for that,
    not quite solved but good thing to know.
    the print set up box was not coming up.



    a message box comes up say printng then disappeares as i am producing a mass of pdfs ready to mail out i do not want to see the little message box saying printing page one, page 2 etc

    Florian

  4. #4
    "Certified" Alphaholic
    Real Name
    Jeff Kletrovets
    Join Date
    Oct 2005
    Location
    Columbus, OH
    Posts
    1,135

    Default Re: <object>.saveas()

    a message box comes up say printng then disappeares as i am producing a mass of pdfs ready to mail out i do not want to see the little message box saying printing page one, page 2 etc
    Florian

    I too experience this message box. I could not find a way to turn it off - so for now I am just living with it. I think there are command line pdf utils that could be incorporated but I have chosen not to investigate that at this point.

    Maybe someone can chime in with a solution.

    Regards,

    Jeff

Similar Threads

  1. label.saveas()
    By Pat Bremkamp in forum Application Server Version 8
    Replies: 1
    Last Post: 09-03-2007, 05:32 PM
  2. Report.SaveAs
    By glenschild in forum Alpha Five Version 7
    Replies: 6
    Last Post: 03-16-2006, 10:55 PM
  3. SaveAs
    By David Henderson in forum Alpha Five Version 6
    Replies: 2
    Last Post: 08-31-2004, 01:14 PM
  4. Report.SaveAs path?
    By roy in forum Alpha Five Version 5
    Replies: 2
    Last Post: 06-06-2003, 06:38 AM
  5. help with report.SaveAs
    By gkeramidas in forum Alpha Five Version 5
    Replies: 4
    Last Post: 02-15-2003, 08:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •