Post Reply 
Print results with Prime.
01-09-2015, 09:28 AM
Post: #1
Print results with Prime.
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.

Gérard.
Find all posts by this user
Quote this message in a reply
06-02-2016, 08:03 PM
Post: #2
RE: Print results with Prime.
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.

Stephen Lewkowicz (G1CMZ)
ANDROID HP PRIME APP NO LONGER WORKS OFFLINE?
Visit this user's website Find all posts by this user
Quote this message in a reply
06-04-2016, 06:36 AM
Post: #3
RE: Print results with Prime.
Hi,
Many thanks Stephen, this run pretty well !
Good day !

Gérard.
Find all posts by this user
Quote this message in a reply
06-04-2016, 04:58 PM
Post: #4
RE: Print results with Prime.
I enjoyed that. Someone would have a ready program that demonstrates this function?

Leo

Visit this user's website Find all posts by this user
Quote this message in a reply
06-04-2016, 10:07 PM
Post: #5
RE: Print results with Prime.
(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;

Stephen Lewkowicz (G1CMZ)
ANDROID HP PRIME APP NO LONGER WORKS OFFLINE?
Visit this user's website Find all posts by this user
Quote this message in a reply
06-06-2016, 09:10 AM
Post: #6
RE: Print results with Prime.
Thanks StephenG1CMZ !

Leo

Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)