pro_imaj Posted February 12, 2016 Posted February 12, 2016 Merhaba; Ağdaki makinada PDF yolunu nasıl oluşturmalıyım. Localde denediğimde PDF dosyası oluşurken ağdaki bir makinada denediğimde PDF dosyası oluşmadığından rapor. Aşağıdaki kod ileLocalde PDF oluşturup aynı zamanda açabiliyorken. Ağda bir makinada PDF oluşmadığı için raporda gelmiyor. Yardılarınızı rica ederim. Rapor.LoadFromFile(UniServerModule.FilesFolder+'\Rapor.fr3'); Rapor.PrintOptions.ShowDialog := False; Rapor.ShowProgress:=false; Rapor.EngineOptions.SilentMode:=True; frxPDFExport1.Background:=True; frxPDFExport1.ShowProgress:=False; frxPDFExport1.ShowDialog:=False; frxPDFExport1.FileName := UniServerModule.FilesFolder+'\'+Islemler_Views_Query.FieldByName('Siparis_No').Tex t+''+Islemler_Views_Query.FieldByName('Siparis_Kalem_No').Text+'.pdf'; frxPDFExport1.DefaultPath := ''; Rapor.PrepareReport(); Rapor.Export(frxPDFExport1); PDF_Form.Frame.URL := UniServerModule.FilesFolder+'\'+Islemler_Views_Query.FieldByName('Siparis_No').Text+' '+Islemler_Views_Query.FieldByName('Siparis_Kalem_No').Text+'.pdf';; PDF_Form.Show(); Quote
pro_imaj Posted February 12, 2016 Author Posted February 12, 2016 Şimdide Aşağıdaki gibi yazdığımda bu defada PDF oluşuyor fakat görüntüle yemiyorum, ne yapmam gerekiyor acaba. Showmessage iledönen sonuç ise D:\UK\Dll\files\PDF_Siparisler\sf-001.pdf yandaki uzantı ilgili bilgisayarın bu dizinde değil serverdaki makinada var! Rapor.LoadFromFile(UniServerModule.FilesFolderPath+'\Rapor.fr3'); Rapor.PrintOptions.ShowDialog := False; Rapor.ShowProgress:=false; Rapor.EngineOptions.SilentMode:=True; frxPDFExport1.Background:=True; frxPDFExport1.ShowProgress:=False; frxPDFExport1.ShowDialog:=False; frxPDFExport1.FileName := UniServerModule.FilesFolderPath+'PDF_Siparisler\'+Islemler_Views_Query.FieldByName('Siparis_No').Text+''+Islemler_Views_Query.FieldByName('Siparis_Kalem_No').Text+'.pdf'; frxPDFExport1.DefaultPath := ''; Rapor.PrepareReport(); Rapor.Export(frxPDFExport1); PDF_Form.Frame.URL := frxPDFExport1.FileName ; ShowMessage(PDF_Form.Frame.URL); PDF_Form.Show(); Quote
pro_imaj Posted February 12, 2016 Author Posted February 12, 2016 Merhaba; Aşağıdaki şekilde yaparak sorunu çözdüm. Rapor.LoadFromFile(UniServerModule.FilesFolderPath+'\Rapor.fr3'); Rapor.PrintOptions.ShowDialog := False; Rapor.ShowProgress:=false; Rapor.EngineOptions.SilentMode:=True; frxPDFExport1.Background:=True; frxPDFExport1.ShowProgress:=False; frxPDFExport1.ShowDialog:=False; frxPDFExport1.FileName := UniServerModule.FilesFolderPath+'Siparisler\'+Islemler_Views_Query.FieldByName('Siparis_No').Text+''+Islemler_Views_Query.FieldByName('Siparis_Kalem_No').Text+'.pdf'; frxPDFExport1.DefaultPath := ''; Rapor.PrepareReport(); Rapor.Export(frxPDFExport1); PDF_Form.Frame.URL := UniServerModule.FilesFolderURL+'Siparisler/'+Islemler_Views_Query.FieldByName('Siparis_No').Text+''+Islemler_Views_Query.FieldByName('Siparis_Kalem_No').Text+'.pdf'; ; ShowMessage(PDF_Form.Frame.URL); PDF_Form.Show(); İyi çalışmalar. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.