Normal Topic Can I print to word? (Read 463 times)
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Can I print to word?
Jan 24th, 2008 at 10:50pm
Print Post Print Post  
I have written an database that I need some reports in it I have a preview option i would like to have an option that I can send it to word or even a wordpad
  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Can I print to word?
Reply #1 - Jan 24th, 2008 at 11:01pm
Print Post Print Post  
Sesame reports are HTML. You can preview them, then open the HTML file in Word.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: Can I print to word?
Reply #2 - Jan 24th, 2008 at 11:08pm
Print Post Print Post  
The code below allow me to open an window the previews and has an button with print on it, it does not open in html

// TO PRINT THE STATEMENT REPORT

var vSTI as INT
var vSTItxt as String
var vReport as String

var vFilename as string

VReport = "Main"      // CHANGE TO ACTUAL REPORT NAME

GlobalValue("gvStatementAccountNo", Client Number)      // GET THE ACCOUNT NUMBER
vSTI = @SelectTreeItem("Search Update Menu!Navigation!Save Record")

#include "sbasic_include.sbas"

vFilename = @PrintAReport("Main", REPORT_MODE_PRINT_ONLY_PREVIEW, PRINT_ORIENTATION_PORTRAIT, 0, -1, -1, -1, -1, -1, -1)

  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Can I print to word?
Reply #3 - Jan 24th, 2008 at 11:35pm
Print Post Print Post  
Change the report mode to HTML.

vFilename = @PrintAReport("Main", REPORT_MODE_HTML_PREVIEW, PRINT_ORIENTATION_PORTRAIT, 0, -1, -1, -1, -1, -1, -1)
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: Can I print to word?
Reply #4 - Jan 24th, 2008 at 11:41pm
Print Post Print Post  
Ok thank you.
  
Back to top
IP Logged