1

Konu: Vfp9'da Html Rapor Alma

Dökümanlar bölümündeki "vfp9 da html rapor alma" örneği hata veriyor. Bu kodu kullanan veya benzer bir kodu olan var mı acaba?

2

Re: Vfp9'da Html Rapor Alma

HTML raporda birsey yokki. Bir template yap, textmerge kullan.

3

Re: Vfp9'da Html Rapor Alma

Çetin Bey
hazır .frx dosyam var. Ve bunda yoğun şekilde çizelgeler var. .txt e dönüştürdüğümde çizgileri malesef göremiyorum. (SET REPORTBEHAVIOR 80
_ASCIIROWS = nLines
_ASCIICOLS = nChars
REPORT FORM MyReport.frx TO FILE MyFile.txt ASCII). Ancak benim amacım mevcut .frx dosyasını html ye dönüştürüp başkasını email ile göndermek.Yani .frx içeriği bire bir olsun. Mevcut .frx i bire bir aynı şekilde başka birine gönderip yazıcıdan almasını sağlamak için başka alternatifler de olabilir.

4

Re: Vfp9'da Html Rapor Alma

PDF e cevirip gonderebilirsin,TIFF olarak gonderebilirsin. TIFF i VFP9 ile olusturman kolay . PDF icin PDF printer yada xFrx vs VFP tool kullanman gerekli

TIFF Örnegi

Visual Fox Pro
LOCAL olistener

 
&& get an instance of a ReportListener
&& (see subclass definition below)
olistener = CREATEOBJECT("MyTiffListener")
olistener.tifffilename = "c:\tifftest.tif"
 
&& run a report referencing the configured listener
REPORT FORM (_samples+"solution\reports\invoice.frx") ;
  OBJECT olistener RANGE 1,2
 
&& show result in the browser
RUN /n Explorer.exe c:\tifftest.tif
 
&& our subclass of ReportListener
DEFINE CLASS MyTiffListener AS ReportListener
  tifffilename = []
  listenertype = 2 && page-at-a-time, no output
 
FUNCTION OutputPage(nPageNo, eDevice, nDeviceType)
&& Because ListenerType indicates "no print output,"
  && nDeviceType will be -1 on the call
  && to this method triggered by the report engine
  && We trap that condition and do our own
  && call to OutputPage with filename and image type
  IF nDeviceType = -1 ;
    AND NOT EMPTY(THIS.tifffilename)
 
    IF nPageNo = 1
      && create the TIFF if on first page
      THIS.OutputPage(nPageNo, THIS.tifffilename, 101)
    ELSE
      && append to the TIFF for other pages
      && (file must already exist for this to work)
      THIS.OutputPage(nPageNo, THIS.tifffilename, 201)
    ENDIF
endif

HTML örneği



Visual Fox Pro
LOCAL olistener

 
&& get a reference to the HTMLListener class
DO (_reportoutput) WITH 5, olistener
 
&& turn off UI feedback and user prompts at end of run
olistener.quietmode=.T.
 
&& specify my own filename and location
olistener.targetfilename = "c:\htmltest.htm"
 
&& run a report referencing the configured listener
REPORT FORM (_samples+"solution\reports\ledger.frx") ;
  OBJECT olistener
 
&& show result in the browser
RUN /n Explorer.exe c:\htmltest.htm
 
 
    && we have called OutputPage already with
    && the desired settings
    NODEFAULT
  ENDIF
 
ENDDEFINE

oldu olacak birde XML ornegi olsun smile


Visual Fox Pro
LOCAL olistener

 
&& get a reference to the XMLListener class
&& from the FFC _reportlistener.vcx
olistener = NEWOBJECT("XMLListener", ;
  HOME(0)+"ffc\_reportlistener.vcx")
 
&& turn off UI feedback and user prompts at end of run
olistener.quietmode=.T.
 
&& include data only, no layout information
&& olistener.xmlmode=0 && data only
 
&& other options
&&olistener.xmlmode=1 && layout only
 
olistener.xmlmode=2 && data and layout
olistener.includeDataSourcesInVFPRDL = .T. && data sources
olistener.includeFormattingInLayoutObjects = .T. && additional layout info
 
&& specify my own filename and location
olistener.targetfilename = "c:\xmltest.xml"
 
&& run a report referencing the configured listener
REPORT FORM (_samples+"solution\reports\ledger.frx") ;
  OBJECT olistener
 
&& show result in the browser
RUN /n Explorer.exe c:\xmltest.xml

5

Re: Vfp9'da Html Rapor Alma

Soykan bey
Html bölümü çalışıyor. Ancak hata veriyor ilk açılışta. (www.denbil.com/hata.jpg)
Ayrıca rakam bölümleri hep yıldız şeklinde. (www.denbil.com/ekran.jpg)
İnceliyebilirseniz sevinirim.

6

Re: Vfp9'da Html Rapor Alma

Serafettin,
Hic elle yazilmis bile olsa HTML,XML bir rapora internet explorer'da bakmayi denedin mi? Test raporlari fena gorunmeyebilir ama kullanicin sana kufur etmeye baslamasi en fazla birkac ay alir (ben ikinci gun kufretmeye baslardim:).
Kufur edilmeyecek HTML,XML raporlari olusturan otomatik bir sistem henuz yok (yani ben henuz hic goremedim ama raporlarla da fazla ilgilenmedigim kesin). Kendi kodunu kendin yazacaksin bence.

Internette bir suru PDF generator var. Onlari kullanip PDF yap daha iyi (report listener'dan uzak dur derim nacizane fikrim).

Kullanicinin elinde VFP runtime varsa daha iyisi datayi (ve gerekiyorsa frx/frt) zipleyip gondermek.

7

Re: Vfp9'da Html Rapor Alma

Çetin bey
Size katılıyorum. en iyisi pdf genarator. Burada problem raporun gönderileceği yerde vfp runtime olmaması. Kullanıcı word,excel gibi bu oluşan raporu başka yerlere emal, msn v.s. ile göndermek ve orada yazıcıdan çıktı almak istiyor.

8

Re: Vfp9'da Html Rapor Alma

asagidaki linkler den pdf creatror lari indirip inceleyebilirsin

http://site4.pdf995.com/download.html
http://www.cutepdf.com
http://www.pdfdesk.com
www.foxitsoftware.com/pdf/creator/
www.pdfpdf.com/pdf4free.html
www.win2pdf.com

9

Re: Vfp9'da Html Rapor Alma

smentes yazdı:

Çetin bey
Size katılıyorum. en iyisi pdf genarator. Burada problem raporun gönderileceği yerde vfp runtime olmaması. Kullanıcı word,excel gibi bu oluşan raporu başka yerlere emal, msn v.s. ile göndermek ve orada yazıcıdan çıktı almak istiyor.


xfrx i tavsiye ederim. ben onu kullanıyorum. word, excel ve pdf'ye report u tamamen aynen gönderiyor. html ye de olabileceği kadar iyi gönderiyor.

Haksızlıklar karşısında susanlar, dilsiz şeytanlardır!
www.metinemre.com

10 Son düzenleyen, ercan (05.02.2007 21:20:01)

Re: Vfp9'da Html Rapor Alma

sayım mentes nacizane benim de bir alternatif pdf motoru tavsiyem olacak.  Adı pdfcreator. Oluşturduğu dosyanın boyutu gayet makul boyutta ve ayrıca hemen hemen tüm resim formatlarına da çevirebiliyor.
Not:Türkçe menü desteği de var smile
adresi:            http://www.pdfforge.org/products/pdfcreator/

iyi çalışmalar.