Jump to content

Recommended Posts

Posted

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();
Posted

Ş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();
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...