HP Forums
Print results with Prime. - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Print results with Prime. (/thread-2819.html)



Print results with Prime. - ggauny@live.fr - 01-09-2015 09:28 AM

Hi,
I have some programs that return many results. I have to note them by hand on paper, one after one.
Is it exist a system to print directly from prime, like for exemple with HP 41 and his
printer ?

Thanks for help. GĂ©rard.


RE: Print results with Prime. - StephenG1CMZ - 06-02-2016 08:03 PM

I just happened to see this old question with no answers...
If anyone still wishes to do this:

I don't know of any support for printing direct from the calculator.

But the following work-around is better than using pen and paper:

Instead of using PRINT(this), use
Notes(filename):=Notes(filename)+this //append results to file

Then after the program finishes, your results can be cut-and-pasted from the Notes file to your PC/Android and then printed.


RE: Print results with Prime. - ggauny@live.fr - 06-04-2016 06:36 AM

Hi,
Many thanks Stephen, this run pretty well !
Good day !


RE: Print results with Prime. - jrozsas - 06-04-2016 04:58 PM

I enjoyed that. Someone would have a ready program that demonstrates this function?


RE: Print results with Prime. - StephenG1CMZ - 06-04-2016 10:07 PM

(06-04-2016 04:58 PM)jrozsas Wrote:  I enjoyed that. Someone would have a ready program that demonstrates this function?

This demonstrates the technique - it works for the text and numbers, I haven't tried other data types.

Code:


 LOCAL G1CMZ_PRINTER:="G1CMZ_PRINTER_DEMO";
 LOCAL OKC,CHS,II;
 LOCAL NL:=CHAR(10);

 PRINTER (TXT)
 BEGIN
  Notes(G1CMZ_PRINTER):=Notes(G1CMZ_PRINTER)+TXT+NL;
 END;

 EXPORT DEMOPRINTER()
 BEGIN
  OKC:=CHOOSE(CHS,"DEMO","RUN DEMO");
  IF OKC THEN
   IF CHS==1 THEN
    Notes(G1CMZ_PRINTER):="Printer reset at "+Time+NL;//ERASES OLD DATA
   
    PRINTER("This file has too much data");
    PRINTER("only if you have no pen");
    FOR II FROM 1 TO 9 DO
     PRINTER(II);
    END;
    PRINTER("ON PC:SELECT FILE AND PRINT");
    PRINTER("ON ANDROID:COPY CONTENTS TO CLIPBOARD AND PASTE");
  END;
  MSGBOX("RESULT IN Notes("+G1CMZ_PRINTER+")");
END;
 
 END;



RE: Print results with Prime. - jrozsas - 06-06-2016 09:10 AM

Thanks StephenG1CMZ !