database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
PostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
ㆍCache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
Cache Q&A 375 게시물 읽기
No. 375
[Zen] Zen Reports 자동 출력하기
작성자
구글그룹스
작성일
2009-03-18 12:25
조회수
4,154

Here is a sketch of a solution:

s rpt=##class(MyPackage.MyReport).%New()

s tSC=rpt.GenerateReport("C:\TEMP\MyReport.pdf",2)

i 'tSC d DecomposeStatus^%apiOBJ(tSC,.Err) w !,Err(Err) ;'

Do $zf(-2,$zu(147,adobe)_" /t "C:\TEMP\MyReport.pdf"_" "_printer)

 

Outfile is the PDF file ZEN Reports generates.  You can generate it using GenerateReport.

 

Adobe is the path of Adobe Reader.

 

Printer is a printer name say \\myserver\myprintername

 

The above is a Windows solution.  A UNIX solution is similar.  Using conditionals one can develop a unified solution.

 

Best Regards,

Jonathan S. Levinson

Senior Software Developer

Object Group

InterSystems

617-621-0600

 

-----Original Message-----

From: InterSystems-ZEN@googlegroups.com [mailto:InterSystems-ZEN@googlegroups.com] On Behalf Of Lori Fassman

Sent: Thursday, March 12, 2009 7:37 PM

To: InterSystems: Zen Community

Subject: [InterSystems-Zen] Re: Automatic Printing of ZEN Reports

Hi,

 

I have a customer asking a similar question.  Does anyone have an

example of Cache' ObjectScript that automatically prints PDF reports

created by Zen?  (I assume not since no one responded to this thread

just a few short weeks ago?)

 

Thanks,

 

Lori

 

On Feb 27, 6:50 am, "Jonathan Levinson"

<Jonathan.Levin...@intersystems.com> wrote:

> We are working on a solution to this problem and it will be in a

> subsequent release.

 

> We treat the acroreader the same way we treat XEP/FOP.  We allow

> defining a path to it and feeding thePDFto the acroreader to be

> printed.

 

> In the mean time, maybe someone else has a solution that does not

> require our enhancement to ZEN Report printing.

 

> Best Regards,

> Jonathan S. Levinson

> Senior Software Developer

> Object Group

> InterSystems617-621-0600

 

> -----Original Message-----

> From: InterSystems-ZEN@googlegroups.com

 

> [mailto:InterSystems-ZEN@googlegroups.com] On Behalf Of seppo

> Sent: Friday, February 27, 2009 5:14 AM

> To: InterSystems: Zen Community

> Subject: [InterSystems-Zen] Automatic Printing of ZEN Reports

 

> We have created a ZEN Report. As long as we view it in a browser (for

> example as apdf) everything is ok and I canprintthis report using

> the functionality of the browser (IE in our case). Now we have the

> problem that we need toprintthis report automaticly (meaning: no

> human interaction) fom a Cache programm.

 

> Does somebody happen to have a solution for this problem?

 

> In the programm I can create the report and store it in a file (again

> as apdf).

> I have already tried toprintthe stored file with $ZF and the

> acroreader, this works only if I am logged in on the machine where

> cache is running but not when cache is running as a service, nobody is

> logged in on the machine and I start the programm from a telnet

> terminal or the programm is started by a machine to machine

> communication. So this easy one is not the answer I am looking for.

<트랙백 주소:http://groups.google.com/group/InterSystems-ZEN/browse_thread/thread/91bbcc30751da4dd#>

 

[Top]
No.
제목
작성자
작성일
조회
378일본어 가능 개발자
InterSystems
2009-03-26
4332
377[Zen] Chart 가운데로 정렬하기
구글그룹스
2009-03-18
4209
376[Zen] Tab에 Zen Page 삽입
구글그룹스
2009-03-18
3921
375[Zen] Zen Reports 자동 출력하기
구글그룹스
2009-03-18
4154
374[Zen] ZEN Component 동적 추가/제거하기
구글그룹스
2009-03-18
4157
3732009.1 Field Test 다운로드 하기
CacheDB
2009-03-18
4037
372[Cache] 완전초보 질문입니다 ㅠㅠ [2]
한민용
2009-03-17
4022
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2019 DSN, All rights reserved.
작업시간: 0.070초, 이곳 서비스는
	PostgreSQL v11.5로 자료를 관리합니다