Search found 22 matches: savetofile

Return to advanced search

GETURLTOFILE error on windows 7 (WINOLE/1007)

... //oStr = CREATEOBJECT( "ADODB.Stream" ) //oStr:Open() //oStr:Type = 1 //oStr:Write( oHtp:ResponseBody ) //oStr:SaveToFile( cFile, 2 ) //oStr:Close() lOk = .T. //CATCH ex // ? ex:message //END RETURN lOk
by Silvio.Falconi
Fri Apr 10, 2020 10:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: GETURLTOFILE error on windows 7 (WINOLE/1007)
Replies: 2
Views: 319

Re: Create PDF in Mod_Harbour.

I pasted this code into my program and run. The ? hb_NumToHex( HPDF_SaveToFile( hPdf, "c:\temp\Hello.pdf" ) ) returns 0, there is a Temp directory on my c: drive but no file is created. I am using IIS version of Mod_Harbour.

Thanks,
by byron.hopp
Mon Mar 02, 2020 5:24 pm
 
Forum: mod_harbour
Topic: Create PDF in Mod_Harbour.
Replies: 5
Views: 804

Re: Create PDF in Mod_Harbour.

Byron,

Please change this line this way:

? HPDF_SaveToFile ( hPdf, "Hello.pdf" )

and lets see what return code you get
by Antonio Linares
Mon Mar 02, 2020 7:43 am
 
Forum: mod_harbour
Topic: Create PDF in Mod_Harbour.
Replies: 5
Views: 804

Create PDF in Mod_Harbour.

Is there any samples of printing to pdf using harupdf lib. I tried the TPdf print class from my newest version of Harbour but this does not work. I then created the code below by using the functions used in the class: function main() local hPdf := HPDF_New() local hPage := HPDF_AddPage( hPdf ) HPDF_...
by byron.hopp
Sun Mar 01, 2020 7:22 pm
 
Forum: mod_harbour
Topic: Create PDF in Mod_Harbour.
Replies: 5
Views: 804

Re: Descarga desde https

... ) oXMLHTTP:Send() If oXMLHTTP:Status() == 200 oADODBStream:Type := 1 oADODBStream:Open() oADODBStream:Write( oXMLHTTP:ResponseBody ) oADODBStream:SaveToFile( cDest, 2 ) // MsgAlert("Download feito, ok", "Aviso") lOk:=.t. Else // MsgAlert("Erro com download", "Aviso") ...
by FranciscoA
Tue Sep 03, 2019 8:12 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Descarga desde https SOLUCIONADO
Replies: 15
Views: 2194

Re: Descarga desde https

... ) oXMLHTTP:Send() If oXMLHTTP:Status() == 200 oADODBStream:Type := 1 oADODBStream:Open() oADODBStream:Write( oXMLHTTP:ResponseBody ) oADODBStream:SaveToFile( cDest, 2 ) // MsgAlert("Download feito, ok", "Aviso") lOk:=.t. Else // MsgAlert("Erro com download", "Aviso") ...
by Sistem
Tue Sep 03, 2019 7:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Descarga desde https SOLUCIONADO
Replies: 15
Views: 2194

Re: Imprimir pdf sin intervención del usuario

Con Harbour, tienes que enlazar las librerias hbhpdf.lib y libhpdf.lib #include "FiveWin.ch" #include "harupdf.ch" Function Main() Local oPdf,Page,oImage,oFont,Font1,Font2,Font3 oPdf:=HPDF_New() HPDF_SetCompressionMode( oPdf, HPDF_COMP_ALL ) **HPDF_SetPassword( oPdf, 'jaime', 'al...
by jacgsoft
Wed Jul 31, 2019 9:53 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Imprimir pdf sin intervención del usuario
Replies: 9
Views: 2201

Re: Testing Debenu Quick PDF Library

... LastErrorCode LoadFromFile MergeDocument NewDocument NewPage NormalizePage PageCount PageHeight PageRotation PageWidth RemoveDocument RotatePage SaveToFile SecurityInfo SelectDocument SelectedDocument SelectFont SelectImage SelectPage SetBaseURL SetInformation SetMeasurementUnits SetOrigin SetPageBox ...
by Marc Vanzegbroeck
Sun Mar 10, 2019 11:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Testing Debenu Quick PDF Library
Replies: 44
Views: 7524

Re: Mr. Rao's samples collection.

... ), NIL ), ; cECode := "// " + cTopic + CRLF + ; "// " + cTLink + ; CRLF + CRLF + cTCode, ; oTCode:SetText( cECode ), ; oTCode:SaveToFile( c_path1 + "Sample.prg" ), ; WinExec( TRIM(cEDITOR) + " " + c_path1 + "Sample.prg" ), ; oTCode:SetText( cTCode ...
by ukoenig
Sun Mar 04, 2018 7:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Mr. Rao's samples collection.
Replies: 139
Views: 20909

Re: METHOD SaveToFile of trichedit is wrong ?

on testrtf.prg there is another big error 1. Open 2 window child and on each write the word "HOME" 2. then select the word home on a window child and press the size of the font 3. you 'll see also the get ( size of font) of the other window child is moved and the word not change the size 4...
by Silvio.Falconi
Mon Apr 25, 2016 3:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: METHOD SaveToFile of trichedit is wrong ?
Replies: 2
Views: 601

Re: METHOD SaveToFile of trichedit is wrong ?

Silvio Method SaveToFile is correct Save file as Text plain. You are change extension of cFileName to save, or static function Save()   local cFile := cGetFile( "Rich Text Format (*.rtf) |*.rtf|" + ;        ...
by cnavarro
Mon Apr 25, 2016 4:10 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: METHOD SaveToFile of trichedit is wrong ?
Replies: 2
Views: 601

METHOD SaveToFile of trichedit is wrong ?

... it save as text if I open the file with windows notepad I can see the file as text and I saw it lose the format rtf why ? perhaps the METHOD SaveToFile is wrong ? METHOD SaveToFile( cFileName ) CLASS TRichEdit   DEFAULT cFileName := ::cFileName   if Empty( cFileName )      ...
by Silvio.Falconi
Mon Apr 25, 2016 12:49 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: METHOD SaveToFile of trichedit is wrong ?
Replies: 2
Views: 601

Re: question for trichedit

Silvio

SaveToFile method, use MemoWrite, and not use Methods SaveAsRTF and not use SaveToRTF

I misunderstood what you need?
by cnavarro
Sun Apr 24, 2016 10:32 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: question for trichedit
Replies: 10
Views: 2466

Re: question for trichedit

Silvio, try with 1 Question METHOD SaveToFile( cFileName ) CLASS TRichEdit  Cristobal before pls see the methods METHOD InsertRTF( cRTF ) CLASS TRichEdit and METHOD CanPaste( nFormat ) before there was a new data nFormat ? I thinked ...
by Silvio.Falconi
Sun Apr 24, 2016 9:52 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: question for trichedit
Replies: 10
Views: 2466

Re: MSVS 2012

... are missing are or not in aEvents, thanks Antonio these are the event names in avents Createasxml Createasregistry Createasbinary Loadfromfile Savetofile Getsection Exchange string Exchange int Loading valid Empty section From handleevent these are the events received 19 50 15 Createasxml Loadfromfile ...
by Richard Chidiak
Wed May 22, 2013 10:59 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: MSVS 2012
Replies: 77
Views: 15099
Next

Return to advanced search