Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #4767

Re: merge *.rpt files with pdf creator to one *.pdf

From "Francesco F." <francescangeli.f.remove@remove.gmail.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: merge *.rpt files with pdf creator to one *.pdf
Date 2013-02-13 07:59 +0100
Organization albasani.net
Message-ID <kffdkk$qaf$1@news.albasani.net> (permalink)
References <5eedadcc-0c0b-4627-a24e-8b5b63a9cd75@googlegroups.com> <c6cd1a71-5121-40db-b96a-4e7574864ab9@googlegroups.com>

Show all headers | View raw


Nice tip!

Bye,
Francesco

Il 12/02/2013 21:53, Gustavo Biasone ha scritto:
> Hi,
>
> The trick is to start pdfcreator and put it on hold, print all you need to the virtual pdf printer, then combine all printjobs and finally tell pdfcreator to start printing.
>
> This is a sample:
>
> LOCAL oPDF AS _clsPDFCreator // Class generated by VO
>
> oPDF := _clsPDFCreator{}
>
>
> 	IF oPDF:fInit
> 		
> 		oPDF:cStart("/NoProcessingAtStartup", TRUE)	
> 		
> 		oPDF:[cOption,"AutosaveDirectory"] := "c:\"
> 		oPDF:[cOption,"AutosaveFilename"] := "gustavoB"
> 		oPDF:[cOption,"UseAutosave"] := 1
> 		oPDF:[cOption,"UseAutosaveDirectory"] := 1
> 		oPDF:[cOption,"AutosaveFormat"] := 0 // PDF
> 		
> 		oPDF:cClearCache()
> 		
> 		//
> 		// Print here
> 		// Each print process will create a separate print job in PDFCreator queue
> 		//
> 			
> 		oPDF:cCombineAll()  // This will merge all jobs into one
>
> 		oPDF:cPrinterStop := FALSE   // Start printing
> 	
> 	ENDIF
>
>
> Hope this helps.
>
> Gustavo Biasone
>
>
>
> El s�bado, 9 de febrero de 2013 09:09:50 UTC-3, oplossi...@gmail.com  escribi�:
>> i use pdf creator to email *.rpt files as pdf
>>
>> it works well with one rpt file to one pdf file
>>
>>
>>
>> if odcmailcheck:checked
>>
>>    opdf := OLEAutoObject{"pdfcreator.clspdfcreator"}
>>
>> 					
>>
>>    opdf:cstart("/noproeccesingatstartup",1)
>>
>>    opdf:[coption,"useautosave"] := 1
>>
>>    opdf:[coption,"useautosavedirectory"] := 1
>>
>>    opdf:[coption,"autosavedirectory"] := "c:\cavo_programma\ddd\rapporten"
>>
>>    opdf:[coption,"autosavefilename"] := "Bestelbon"
>>
>> 					
>>
>> 				
>>
>>    cprinter := "pdfcreator"
>>
>> 					
>>
>>    oreportf := rp3Runtime{self}
>>
>>    oreportf:HyperLabel := HyperLabel{#rp3runtime,"rp3runtime",null_string,null_string}
>>
>>    oreportf:CreateEmbedding("reportpro.runtime")
>>
>>    oreportf:InitAutoObject()
>>
>> 					
>>
>>    kdserver := KLANTDE{}
>>
>>    DO CASE
>>
>>     CASE kdserver:taal == "N" .or. kdserver:taal == "n" .or. kdserver:taal == ""
>>
>>       oreportf:LoadReport("c:\cavo_programma\ddd\rapporten\bestelbon.rpt")
>>
>>     CASE kdserver:taal == "F" .or. kdserver:taal == "f"
>>
>>       oreportf:LoadReport("c:\cavo_programma\ddd\rapporten\bestelbonf.rpt")     ENDCASE
>>
>> kdserver:Close()
>>
>> //oreportf:LoadReport("c:\cavo_programma\ddd\rapporten\bestelbon.rpt")
>>
>> if oreportf:IsValid
>>
>>    oreportf:SetReportStringAttribute(rpt_attr_printer_name,cprinter)
>>
>>    oreportf:PrintCaption :="Versturen email"
>>
>>    oreportf:PrintMessage := "Bestelbon/Offerte"
>>
>>    oreportf:PrintReport()
>>
>>    self:odcmailcheck:checked := false
>>
>> endif
>>
>> else
>>
>>   oreportf:SetReportStringAttribute(rpt_attr_printer_name,pserver:Printer)
>>
>>    oreportf:PrintReport()
>>
>> endif
>>
>>
>>
>> how can i combine two *.rpt files to one pdf file and email it?
>

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

merge *.rpt files with pdf creator to one *.pdf oplossingopmaat@gmail.com - 2013-02-09 04:09 -0800
  Re: merge *.rpt files with pdf creator to one *.pdf dlzc <dlzc1@cox.net> - 2013-02-09 06:38 -0800
    Re: merge *.rpt files with pdf creator to one *.pdf Jean-Luc Stassen <jls@igsoft.be> - 2013-02-09 07:12 -0800
  Re: merge *.rpt files with pdf creator to one *.pdf Karl Wochele <kw@e©os-system.de> - 2013-02-11 10:47 +0100
  Re: merge *.rpt files with pdf creator to one *.pdf Gustavo Biasone <rosario.soft@gmail.com> - 2013-02-12 12:53 -0800
    Re: merge *.rpt files with pdf creator to one *.pdf "Francesco F." <francescangeli.f.remove@remove.gmail.com> - 2013-02-13 07:59 +0100

csiph-web