Emailing from Preview screen

Emailing from Preview screen

Postby dtussman » Mon May 17, 2021 11:05 pm

I have a client who likes to email documents from the Preview screen by clicking the @ button at the top. For the last few days when doing that the pdf file that is created by the preview function is cut in half; only the left hand side of the document appears. And it appears larger than normal so perhaps that's why it is cut off. Any ideas what might be happening? Of course when I use the normal print function and select a pdf writer it works fine but she likes doing it her way as it is faster.
dtussman
 
Posts: 97
Joined: Sat Jun 06, 2015 6:57 pm

Re: Emailing from Preview screen

Postby Antonio Linares » Tue May 18, 2021 4:06 pm

Could you please post some screenshots ?

What data are you previewing ? How do you generate it ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42076
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Emailing from Preview screen

Postby dtussman » Tue May 18, 2021 4:35 pm

It happens with any document generated by the program and viewed using the Preview function. My customers do this thousands of times a day with no problem except for this one customer and it just started happening. You know how there is that Factor setting on the Preview screen. Its as though when you click the @ button it also is changing the factor setting to 2. You can even see it enlarge briefly before going to the email screen in Outlook in which the document is displayed with the right half missing and larger than normal as if the factor is set to 2
dtussman
 
Posts: 97
Joined: Sat Jun 06, 2015 6:57 pm

Re: Emailing from Preview screen

Postby Antonio Linares » Tue May 18, 2021 4:46 pm

Has he installed a new printer ?

What has changed on his PC lately ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42076
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Emailing from Preview screen

Postby dtussman » Tue May 18, 2021 5:54 pm

Perhaps. I will check. Maybe a System Restore will resolve it? The one thing she reports is that when previewing something someone clicked on that save as Word document button and the problem began after that.
dtussman
 
Posts: 97
Joined: Sat Jun 06, 2015 6:57 pm

Re: Emailing from Preview screen

Postby Rick Lipkin » Wed May 19, 2021 12:42 pm

dtussman

You have two or three ways to create e-mail ..

1) Using Cdo
2) Using SMTP
3) Using the clients Outlook Client

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Emailing from Preview screen

Postby karinha » Wed May 19, 2021 2:35 pm

Test, Please.

Code: Select all  Expand view

// ..\SAMPLES\PRNPDF.PRG

#Include "FiveWin.ch"

STATIC oWnd

FUNCTION Main()

   DEFINE WINDOW oWnd FROM 1, 1 TO 20, 60 TITLE "Printing a PDF"

   @ 3, 3 BUTTON "&Print me" OF oWnd SIZE 80, 20 ;
      ACTION( ( oWnd:Minimize(), PrintMe() ), oWnd:End() )

   ACTIVATE WINDOW oWnd

RETURN NIL

FUNCTION PrintMe()

   LOCAL oPrn AS OBJECT
   LOCAL cError, cSeqErro, nLin, nLinha, oFont

   IF .NOT. FILE( "ERROR.TXT" )

      ? "ERROR.TXT ??"

      BREAK

   ENDIF

   IF FILE( "ERROR.PDF" )

      DELETEFILE( "ERROR.PDF" )

   ENDIF

   BEGIN SEQUENCE

      cSeqErro := MemoRead( "ERROR.TXT" )

      cError := ALLTRIM( cSeqErro )

      PRINTER oPrn NAME "Test PDF" PREVIEW MODAL

      PRINT oPrn PREVIEW FILE "error.pdf"

      DEFINE FONT oFont NAME "COURIER NEW" SIZE 0, -10 OF oPrn

      oPrn:SetPage(9)    // A4
      oPrn:SetPortrait() // Vertical

      PAGE

         nLin := 1

         FOR nLinha = 1 TO MLCOUNT( cError, 100 )

            SYSREFRESH()

            CURSORWAIT()

            oPrn:CmSay( nLin := nLin +.4, 1.5, MEMOLINE( cError, 100, nLinha), oFont )

            IF nLin > 25

               nLin := 1

               ENDPAGE

               PAGE

            ENDIF

         NEXT

         ENDPAGE

         oPrn:lMeta = .T.

      ENDPRINT

      oFont:End()

   END SEQUENCE

RETURN NIL

// FIN / END
 


Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7804
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Emailing from Preview screen

Postby dtussman » Thu May 20, 2021 6:38 pm

For anyone who might be curious, it was an Adobe problem, solved by reinstalling Adobe Acrobat.
dtussman
 
Posts: 97
Joined: Sat Jun 06, 2015 6:57 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 111 guests