Telegram_2021-11-01T01

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2021 > 11 > 01 >

Telegram_2021-11-01T01

Telegram link

 

2021-11-01T01:33:05

 

thanks for you all

 


 

Telegram link

 

2021-11-01T01:34:14

 

I watch out the app. running in site for one day

 


 

Telegram link

 

2021-11-01T01:35:49

 

FileCopy('D:\\decentWebtemp\\wwwroot\\blood.pdf', xFileName, True);

 


 

Telegram link

 

2021-11-01T01:37:16

 

this command create error when user try to print document

 


 

Telegram link

 

2021-11-01T01:37:53

 

this tiger windows to stop my app

 


 

Telegram link

 

2021-11-01T01:39:14

 

I need write code to do print document if any of you have one

 


 

Telegram link

 

2021-11-01T01:39:52

 

pdfname, pdfurl:string;

 

Component: TfrxComponent;

 

Chart: TfrxChartView;

 

Page, I,s,counter: Integer;

 

hos_name_a,hos_name_e,location_code,xFileName,xURL:string;

 

filehandle: Integer;

 

F: File;

 

begin

 

IWListbox1.Clear;

 

s:= 0;

 

I := 0;

 

AssignFile(F,'D:\\decentWebtemp\\wwwroot\\blood.pdf');

 

coinitialize(nil);

 

UserSession.Tichet_no.EngineOptions.SilentMode:= true;

 

UserSession.Tichet_no.EngineOptions.EnableThreadSafe:=true;

 

UserSession.Tichet_no.EngineOptions.DestroyForms := false;

 

UserSession.Tichet_no.EngineOptions.UseFileCache := false;

 

UserSession.Tichet_no.ShowProgress:=False;

 

if pat_code.Text = trim('ER') then begin

 

UserSession.dm.host_name.open;

 

Component := UserSession.Tichet_no.FindObject('memo1');

 

TfrxMemoView(Component).Memo.Text := UserSession.dm.host_name.fieldbyname('a_name').asstring ;

 

Component := UserSession.Tichet_no.FindObject('memo5');

 

TfrxMemoView(Component).Memo.Text := datetimetostr(now);

 

Component := UserSession.Tichet_no.FindObject('memo4');

 

TfrxMemoView(Component).Memo.Text := hos_no.text;

 

Component := UserSession.Tichet_no.FindObject('memo2');

 

TfrxMemoView(Component).Memo.Text := Ticket_edit.text;

 

Component := UserSession.Tichet_no.FindObject('memo3');

 

TfrxMemoView(Component).Memo.Text := clinic_edit.text;

 

Component := UserSession.Tichet_no.FindObject('memo7');

 

TfrxMemoView(Component).Memo.Text := re_print;

 

UserSession.Tichet_no.EngineOptions.EnableThreadSafe:= True;

 

UserSession.Tichet_no.PrepareReport;

 

UserSession.Tichet_no.Export(UserSession.ticket_pdf);

 

UserSession.ticket_pdf.FileName:= 'D:\\decentWebtemp\\wwwroot\\blood.pdf';

 

try

 

for s:= 0 to (strtoint(copy_edt.text)) do

 

begin

 

IWListbox1.Items.Add('D:\\decentWebtemp\\wwwroot\\blood.pdf')

 

end;

 

PdfNew.CreateDocument;

 

for I := 0 to IWListbox1.Items.Count -1 do

 

begin

 

Pdf.FileName := IWListbox1.Items[I];

 

Pdf.Active := True;

 

PdfNew.ImportPages(Pdf, IntToStr(1) + '-' + IntToStr(Pdf.PageCount ), Page);

 

Inc(Page, Pdf.PageCount);

 

Pdf.Active := False;

 

end;

 

PdfNew.SaveAs('D:\\decentWebtemp\\wwwroot\\blood.pdf');

 

PdfNew.Active := False;

 

finally

 

Pdf.Active := False;

 

PdfNew.Active := False;

 

/// webApplication.SendFile(pdfname, True, 'pdf', 'ticket.pdf');

 

///

 

xFileName := TIWAppCache.NewTempFileName;

 

// copy a sample pdf file to our new cache file. We are just simulating a pdf file creation

 

FileCopy('D:\\decentWebtemp\\wwwroot\\blood.pdf', xFileName, True);

 

// add the pdf file to the cache. cache type is defined as ctOneTime, i.e., the file will be deleted when served

 

xURL := TIWAppCache.AddFileToCache(Self, xFileName, TIWMimeTypes.GetAsString(mtPDF), ctOneTime);

 

WebApplication.NewWindow(xURL);

 

deletefile('D:\\decentWebtemp\\wwwroot\\blood.pdf');

 

UserSession.Tichet_no.EnabledDataSets.Clear;

 


 

Telegram link

 

2021-11-01T01:44:50

 

The commit size 40G comes from set mysql innodb_buffer_pool_size to 70% of system ram as recommended

 


 

Telegram link

 

2021-11-01T01:56:07

 

what is about this 11/01/2021 9:54:53 Cache directory created \C:\\Users\\ADMINI

 

1\\AppData\\Local\\Temp\\1\\01d2bzcar2\\\

 

then stoped