Consulting

Results 1 to 5 of 5

Thread: Solved: report to pdf and email

  1. #1
    VBAX Mentor
    Joined
    Aug 2008
    Posts
    323
    Location

    Solved: report to pdf and email

    I am trying to save a report as pdf and email it .
    the code that I am using it is the following
    [VBA]Private Sub Command4_Click()
    'DoCmd.OpenReport "qryEncumberedProjectReport", acViewPreview
    'DoCmd.OutputTo acOutputReport, "Test", acFormatPDF, "C:\Documents and 'Settings\vvishwanatha\My Documents\CMS\" & "test" & ".pdf"

    DoCmd.SendObject acSendReport, "qryEncumberedProjectReport", acFormatPDF
    End Sub
    [/VBA]
    it gives me a error 2282, saying that the format in which you are attempting to output the current object is not available.
    I then downloaded the pdf extension but still find the same error.

    I am using access 2007
    I have done some search online and read at one place saying that this cannot be done in 2007, as this is bug.

    any one can help me to work this

    Thank you
    I am a Newbie, soon to be a Guru

  2. #2
    VBAX Tutor
    Joined
    Dec 2006
    Posts
    220
    Location
    Quote Originally Posted by nepotist
    I have done some search online and read at one place saying that this cannot be done in 2007, as this is bug.
    I have no problem with this I'm running 2007 SP1
    "Intellectual passion occurs at the intersection of fact and implication."

    SGB

  3. #3
    VBAX Mentor
    Joined
    Aug 2008
    Posts
    323
    Location
    well i am getting the above mentioned error.
    What should I do then and I dont know what is the service pack that i am running though and i dont think the service pack should matter

    Any one any clue ???
    I am a Newbie, soon to be a Guru

  4. #4
    VBAX Newbie
    Joined
    Oct 2008
    Posts
    5
    Location
    couldnt add the link, but go to this
    support.microsoft.com/kb/934833

    you'll need the addins at the bottom, unsure if you have them already or if they're in office 2007 sp1

  5. #5
    VBAX Mentor
    Joined
    Aug 2008
    Posts
    323
    Location
    I solved it man... I think these days it is the problem with the adobe pdf. I did run the whole thing on a machine that had foxit software (another one similar to view pdf) it works like a charm
    Thanks for ur response though9 I tried them but still it dint work
    I am a Newbie, soon to be a Guru

Posting Permissions

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