Search found 1502 matches

by mastintin
Wed May 08, 2019 9:56 am
Forum: FiveWin for Harbour/xHarbour
Topic: Rpreview issues - PDF
Replies: 58
Views: 10520

Re: Rpreview issues - PDF

Nages... 1.- libHaru is a free, cross platform, open source library for generating PDF files. ... from http://libharu.org/ 2.- hbpdf library is in harbour/contrib . 3.- According to AntoninoP , I would prefer to decide whether or not to include libharu. use this is a good idea to force the use depen...
by mastintin
Wed May 08, 2019 9:06 am
Forum: FiveWin for Harbour/xHarbour
Topic: Rpreview issues - PDF
Replies: 58
Views: 10520

Re: Rpreview issues - PDF

AntoninoP wrote:@Maustin , have you tried it? I will do a test ASAP.
Yes. I've tried it with a simple listing.
pdf generate
Image
preview original
Image
by mastintin
Wed May 08, 2019 7:59 am
Forum: FiveWin for Harbour/xHarbour
Topic: Rpreview issues - PDF
Replies: 58
Views: 10520

Re: Rpreview issues - PDF

AntoninoP, Add this in your code ... void Emf2Pdf::ParseFile() .....   case EMR_RECTANGLE:         nRead += Rectangle(); break; ....   size_t Emf2Pdf::Rectangle() {    RECTL bound;    fread(&bound, 4, 4, f);    float x = bound.left * xScale  ;    float y = currHeight - bound.bottom * yScale ;   ...
by mastintin
Thu May 02, 2019 10:58 am
Forum: FiveWin for Harbour/xHarbour
Topic: Rpreview issues - PDF
Replies: 58
Views: 10520

Re: Rpreview issues - PDF

May I ask? At present, how are you saving preview to pdf? (i.e., emf to pdf) Depending on the case . To print directly to pdf I use Tharupdf code to build printer job. For Preview, i use Standard code from fivewin . I have a small modification in prv2pdf.prg code to determine Quality and density in...
by mastintin
Thu May 02, 2019 8:06 am
Forum: FiveWin for Harbour/xHarbour
Topic: Rpreview issues - PDF
Replies: 58
Views: 10520

Re: Rpreview issues - PDF

I have looked at it... With the cpp code it does not work at all ( for example the box ) and it breaks if they are several pages. With the prg code , not work , it seems that the implementation is not finished. Part of implementation of fonts is missing. It is an interesting job, but at the moment n...
by mastintin
Thu May 02, 2019 5:28 am
Forum: FiveWin for Harbour/xHarbour
Topic: Rpreview issues - PDF
Replies: 58
Views: 10520

Re: Rpreview issues - PDF

Good option. Can you also please guide a normal user how to use and what libs to link to save preview to pdf? I use Harupdf from Carlos Mora lib : https://bitbucket.org/carlos_mora/pdfprinter , to print pdfs, but this option seems very good and apparently easy to implement. I will try to look at it...
by mastintin
Wed May 01, 2019 10:56 am
Forum: FiveWin for Harbour/xHarbour
Topic: Rpreview issues - PDF
Replies: 58
Views: 10520

Re: Rpreview issues - PDF

and use this ?
have an example for fivewin.
https://github.com/APerricone/emf2pdf
Is pure harbour code and use libharu .
I use harupdf with good results.
by mastintin
Mon Apr 08, 2019 4:46 pm
Forum: FiveWin for Harbour/xHarbour
Topic: How to use GDIPLUS -> NewGradientBrush ?
Replies: 11
Views: 1237

Re: How to use GDIPLUS -> NewGradientBrush ?

HB_FUNC( GDIPLUSNEWTEXTUREBRUSH ) it has to be placed inside gdiplus.cpp file is cpp code .
by mastintin
Mon Apr 08, 2019 12:39 pm
Forum: FiveWin for Harbour/xHarbour
Topic: How to use GDIPLUS -> NewGradientBrush ?
Replies: 11
Views: 1237

Re: How to use GDIPLUS -> NewGradientBrush ?

This code , would serve you ?

HB_FUNC( GDIPLUSNEWTEXTUREBRUSH )
{
Bitmap * newImage = ( Bitmap * ) hb_parptr( 1 );
hb_retptr( new TextureBrush( newImage ) );
}


METHOD NewTextureBrush( oGdiBmp ) CLASS Brush
::hBrush = GdiPlusNewTextureBrush( oGdiBmp:hbmp )
return Self
by mastintin
Sat Dec 15, 2018 10:17 am
Forum: FiveWin for Harbour/xHarbour
Topic: How to use PNG in ButtonBar from RC into EXE-Solved
Replies: 4
Views: 1270

Re: How to use PNG in ButtonBar from RC into EXE

????
I use only png files in my program and buttonbar show icons ok.

rc line for png is :

BANK 10 "bmp\\png\\bank.png"

Regards.
by mastintin
Mon Nov 05, 2018 8:05 pm
Forum: FiveMac / FivePhone (iPhone, iPad)
Topic: MacExec not working?
Replies: 3
Views: 1695

Re: MacExec not working?

See this ... TaskExec parameter 1 -> comandline executable, parameter 2 ->array arguments return-> string result. msginfo( TASKEXEC( "/bin/sh",  { ResPath() + "/MoveFiles.sh" } )   )   NEW ... For open file with app -> OPENFILEWITHAPP( Path()+"/testbtn.prg", "Texte...
by mastintin
Fri Oct 26, 2018 5:13 pm
Forum: FiveMac / FivePhone (iPhone, iPad)
Topic: SaveFile function
Replies: 5
Views: 2138

Re: SaveFile function

Rene , I found a solution :-)

Image

see your app ....
mouse right button -> show package content
create a directory in app-> Contents-> Resources called de.lproj.

Image
ready.
:-)
by mastintin
Fri Oct 12, 2018 7:51 pm
Forum: FiveMac / FivePhone (iPhone, iPad)
Topic: printing several pages
Replies: 23
Views: 7610

Re: printing several pages

Can you use the same approach for a line or rectangle. Yes , of course , with any control that can be put in a view. The only problem I see now if I use oSay:setBezeled(.t.,.f.). The text does not fit in the border Is normal . The text has a measure that depends on the font used, but you are assign...
by mastintin
Fri Oct 12, 2018 8:56 am
Forum: FiveMac / FivePhone (iPhone, iPad)
Topic: printing several pages
Replies: 23
Views: 7610

Re: printing several pages

First approach... Rene , that is good for you ? #include "FiveMac.ch" *a test program for printing multiple pages *made by René Koot #xcommand @ <nRow>, <nCol> SAY [ <oSay> PROMPT ] <cText> ; OF <oPrn> PAGINED ; [ SIZE <nWidth>, <nHeight> ] ; [ <raised: RAISED> ] ; [ <cPostext: TEXTLEFT, T...
by mastintin
Thu Oct 11, 2018 2:56 pm
Forum: FiveMac / FivePhone (iPhone, iPad)
Topic: printing several pages
Replies: 23
Views: 7610

Re: printing several pages

If Use this ? #xcommand @ <nRow>, <nCol> SAY [ <oSay> PROMPT ] <cText> ; OF <oPrn> PAGINED ; [ SIZE <nWidth>, <nHeight> ] ; [ <raised: RAISED> ] ; [ <cPostext: TEXTLEFT, TEXTRIGHT, TEXTCENTER> ] ; [ AUTORESIZE <nAutoResize> ] ; [ TOOLTIP <cToolTip> ] ; [ <lutf8: UTF8 > ] ; [ PIXEL ] ; => ; <nRow>:= ...