473,378 Members | 1,500 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

how can I create/save a RTF file with landscape orientation?

1
I have tried rtf.Margin = new Padding(1); - dont work

Expand|Select|Wrap|Line Numbers
  1. PaperSize ort = new PaperSize("PaperA4", 1040, 880);
  2. PaperSize rtfp = new PaperSize("PaperA5", 1040, 1040);
  3. rtf.Margin.Left = 3;
  4. Margins lft = new Margins(1, 1, 1, 1);
Dont know how to use these....

my directives/assembles are
Expand|Select|Wrap|Line Numbers
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Configuration;
  4. using System.Linq;
  5. using System.Web;
  6. using System.Web.UI;
  7. using System.Web.UI.WebControls;
  8. using System.Data;
  9. using System.Data.SqlClient;
  10. using System.Web.UI.WebControls.WebParts;
  11. using System.Web.UI.HtmlControls;
  12. using System.Text;
  13. using System.Data.OracleClient;
  14. using Microsoft.Reporting.WebForms;
  15. //using Microsoft.Office.Interop.Word;
  16. using System.Resources;
  17. using System.IO;
  18. using System.Windows;
  19. using System.Drawing;
  20. using System.Windows.Forms;
  21. using System.Drawing.Printing;
HELP Please. :-(
Mar 19 '13 #1
0 1343

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Amy L. | last post by:
I am working on creating a web service that will create a signed xml file. I would like to create this file in memory and than somehow email it to the user that requested it to be generated. I...
9
by: Ivan Demkovitch | last post by:
Hi! I would like to know if I can save File on Server using server-side code? For example, I like to create thumbnail images and populate specific directory. Do I need specific permissions...
12
by: Connor T | last post by:
Hi, I have a crystal report embedded in a viewer. How / Where can I set a property to make it default to landscape orientation? Rgds, Dan
4
by: Jonny | last post by:
Hello Group How do I open a Save File Dialog from an ASPX page behind a browse button? Any help would be fantastic!! I am using ASP.NET 1.1 using VB.NET as the coding language TIA
0
by: Akinyemi | last post by:
I am a newbie in programing. My Tax Project is nearing completion. I have started to think about deployment. But I dont know how to make the user create a file to save his work when he runs the...
8
by: I Hate My Computer | last post by:
I am looking to create a file extension that I can use with my first VB project. I want it to save text like a .txt file but I want it to be a custom file extension like .bttf. I also need to know...
1
by: hugobotha | last post by:
Hi All, I have a problem when saving a text file as a html file in unicode and then google index the Unicode bom as well as I can not open these files. I have a asp page that takes another asp...
5
by: ramesh1210 | last post by:
Hi all, Actually my requirement is that i need to print a page in landscape orientation , but i am unable to find solution for this through google. So I tried to print the page by...
7
by: saadkhan | last post by:
Is there any way to create xml file and save it in SQL Server database all using javascript? I have no security issues for the purpose i need to do it. Though if anyone could give me some better idea...
11
by: dawood munavar | last post by:
I have the size of a text file (say 1MB) and i have the location to save the text file (say C:/) , how do i create a file in perl which should be 1MB size and which should save in C:/. Give me some...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.