we have a FoxPro application Installed under CITRIX XenApp 6.5.
one of the functionality is printing a PDF report using Amyuni driver.
all the users are reporting that it is taking about 6 to 7 minutes to Print
the same Application is printing within acceptable time range under another
Version of Citrix
I created a TEST program/module to print one Page using the code below:
I ran the Test Program on both the current Citrix Server and the New Citrix
Server/XenApp 6.5.
it is taking 40 seconds more to print one page under Citrix Server/XenApp
6.5.
here is the code
* this cursor contains the Data to print
SELECT curCensusTemp
lcpdffile=lcpath+"Census_"+lcDatetime+".PDF"
* Report is on a Network drive, for example
lcRptnamepath="\\NASDIR1\TEST\REPORTS\rptCensusDetails"
* Print the Report
DO pdf2conv_GRP.prg WITH lcpdffile,lcRptnamepath,"REPORT"
*************************************************
***
*** pdf2conv_GRP.prg
***
*************************************************
PARAMETERS tcPdfName,tcRptName, tctype
#DEFINE wdUserTemplatesPath 2
#DEFINE pdf_NoPrompt 1 && do not prompt for file name
#DEFINE pdf_UseFileName 2 && use file name set by SetDefaultFileName else use
document name
#DEFINE pdf_Concatenate 4 && concatenate files, do not overwrite
#DEFINE pdf_DisableCompression 8 && disable page content compression
#DEFINE pdf_EmbedFonts 16 && embed fonts used in the input document
#DEFINE pdf_BroadcastMessages 32 && enable broadcasting of PDF events
PRIVATE lcDriverInit, oPDFPrinter, cPrinterName, lcfilename
* get unique file name
lcfilename = STRTRAN(STRTRAN(SUBSTR(DTOS(DATE()),3)+TIME(1),":",""),".","")
lctype="REPORT"
lctype=IIF(!empty(tctype), tctype,lctype)
cPrinterName = SET("Printer", 3) && Save the current VFP printer name.
oPDFPrinter = CREATEOBJECT("CDIntfEx.CDIntfEx")
lcDriverInit = "oPDFPrinter" + ".DriverInit"
&lcDriverInit('Amyuni PDF Converter')
SET PRINTER TO NAME "Amyuni PDF Converter" && set to pdf printer
* set resolution to 1200 for the best quality
oPDFPrinter.resolution = 1200
* update driver info with resolution info
oPDFPrinter.SetDefaultConfig()
* Note: Message broadcasting should be enabled in order to insert
bookmarks from VFP.
* But see the notes in the AddBookmark function below!
oPDFPrinter.FileNameOptions = pdf_NoPrompt + pdf_UseFileName +
pdf_BroadcastMessages + pdf_Concatenate
* Save the current Windows default printer so we can restore it later.
oPDFPrinter.SetDefaultPrinter()
oPDFPrinter.DefaultFileName=tcPdfName
*-- 2/28/2008, changes for Label
IF lctype=[LABEL]
LABEL FORM &tcRptName TO PRINTER NOCONSOLE
ELSE
REPORT FORM &tcRptName TO PRINTER NOCONSOLE
ENDIF
Any idea
Thanks,
Jean Haidar
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.