Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
export data to Excel using HTML

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PC Guides & IT News
View previous topic :: :: View next topic  
Author Message
girias

New User


Joined: 09 Feb 2007
Posts: 26
Location: Chennai

PostPosted: Wed Mar 05, 2008 6:02 pm    Post subject: export data to Excel using HTML
Reply with quote

Hi All,

I have a requirement which says,

1. A report needs to be converted to excel format and send via SMTP as an attachment.
2. The report (all the values in the excel file) in the attached excel file should be in read-only format. Receiver of the mail should not be able to modify the data in that.

I have done with the first one. Can any one please help me in the second requirement.

-Giri As
Back to top
View user's profile Send private message

stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Wed Mar 05, 2008 6:36 pm    Post subject:
Reply with quote

If you are exporting the data to a CSV for excel, because you can't export to a real excel doc, you can't do anything to enforce read only of the file. It is just a text file which has no form of READONLY management beyond the filesystem. If they receive the file in an email and copy it to their hard drive, the file becomes owned by their userid on that system and they can do what they want with it.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Wed Mar 05, 2008 6:44 pm    Post subject:
Reply with quote

the only way you can enforce anything on a pc is to drive the process thru scripts.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Wed Mar 05, 2008 6:50 pm    Post subject: Reply to: export data to Excel using HTML
Reply with quote

since You are talking about a report
if Your organization really needs to send to a PC something read_only/readable/printable
it would be worth investigating PDF format
PDF's can be tagged with many protection attributes,
which should satisfy Your organization security needs
Back to top
View user's profile Send private message
girias

New User


Joined: 09 Feb 2007
Posts: 26
Location: Chennai

PostPosted: Wed Mar 05, 2008 6:58 pm    Post subject: Reply to: export data to Excel using HTML
Reply with quote

We can directly export data to real excel sheet using HTML tags embedded in the data and setting the content-type and content-disposition for the SMTP proc.

I have read in some forum (not sure, used Google search) formatting excel using mso-properties. One of such formatting is mso-protection which can be used in Excel to protect the contents. But not sure how to use it.
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Wed Mar 05, 2008 7:27 pm    Post subject:
Reply with quote

HTML or XML? Because if it is HTML, it is still not a native excel format.
Back to top
View user's profile Send private message
girias

New User


Joined: 09 Feb 2007
Posts: 26
Location: Chennai

PostPosted: Wed Mar 05, 2008 7:32 pm    Post subject:
Reply with quote

Hi Steve, Its HTML.
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Wed Mar 05, 2008 7:39 pm    Post subject:
Reply with quote

Then the document is not an excel document, but an HTML document. HTML files are just plain text, not binary. Text files have no mso-properties that can force read-only. Your requirement for read-only is unachievable with your current output format.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PC Guides & IT News All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Question related to Data dictionary f... rexx77 SYNCSORT 3 Thu Aug 31, 2017 7:23 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us