Click here to Skip to main content
15,911,132 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: ValueType vs Reference Pin
rtalan17-Oct-07 2:42
rtalan17-Oct-07 2:42 
GeneralRe: ValueType vs Reference Pin
Luc Pattyn17-Oct-07 2:57
sitebuilderLuc Pattyn17-Oct-07 2:57 
GeneralRe: ValueType vs Reference Pin
rtalan17-Oct-07 3:31
rtalan17-Oct-07 3:31 
GeneralRe: ValueType vs Reference Pin
Luc Pattyn17-Oct-07 3:44
sitebuilderLuc Pattyn17-Oct-07 3:44 
GeneralRe: ValueType vs Reference Pin
lmoelleb17-Oct-07 4:46
lmoelleb17-Oct-07 4:46 
GeneralRe: ValueType vs Reference Pin
George L. Jackson17-Oct-07 12:24
George L. Jackson17-Oct-07 12:24 
GeneralRe: ValueType vs Reference Pin
DavidNohejl17-Oct-07 23:21
DavidNohejl17-Oct-07 23:21 
Questionhow to use Indesign files in asp.net Pin
gopal_Pandey16-Oct-07 18:56
gopal_Pandey16-Oct-07 18:56 
hi friends,

I am building an application in asp.net in which my task is to create a pdf file by using the Adobe Indesign CS2 in asp.net.

I am using the code which is found from the net but on running this is given an error That:

"System.UnauthorizedAccessException: Access is denied."

now tell me about this error and what i have to do to achieve this task.
atleast reply if u don't know the answer also please.......

Here's my code::

Imports System
Imports System.Data
Imports System.Configuration
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.WebControls
' Imports System.Web.UI.WebControls.WebParts
Imports System.Web.UI.HtmlControls
Imports InDesign


Public Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load


Dim cstrInddFile As String = Server.MapPath("~/Archieve/yourstory_backcover1.indd")
Dim cstrXMLFile As String = Server.MapPath("~/Archieve/xml1.xml")
Dim cstrOutputFile As String = Server.MapPath("~/Archieve/out.pdf")

Dim indAppType As Type = Type.GetTypeFromProgID("InDesign.Application")
Dim objInDesign As InDesign.Application = DirectCast(Activator.CreateInstance(indAppType, True), InDesign.Application)
Dim objDoc As InDesign.Document = DirectCast(objInDesign.Open(cstrInddFile, False), InDesign.Document)

objDoc.ImportXML(cstrXMLFile)

Dim objPreset As InDesign.PDFExportPreset=DirectCast(objInDesign.PDFExportPresets.LastItem(),InDesign.PDFExportPreset)
objDoc.Export(idExportFormat.idPDFType, cstrOutputFile, False, objInDesign.PDFExportPresets("Press"))

End Sub

End Class




-- modified at 7:21 Thursday 18th October, 2007<b></b>
AnswerRe: how to use Indesign files in asp.net Pin
Pete O'Hanlon16-Oct-07 23:48
mvePete O'Hanlon16-Oct-07 23:48 
AnswerRe: how to use Indesign files in asp.net Pin
Pete O'Hanlon18-Oct-07 22:06
mvePete O'Hanlon18-Oct-07 22:06 
GeneralRe: how to use Indesign files in asp.net Pin
gopal_Pandey24-Oct-07 0:33
gopal_Pandey24-Oct-07 0:33 
QuestionExtracting .zip files Pin
Vipul Mehta16-Oct-07 6:25
Vipul Mehta16-Oct-07 6:25 
AnswerRe: Extracting .zip files Pin
Giorgi Dalakishvili16-Oct-07 6:49
mentorGiorgi Dalakishvili16-Oct-07 6:49 
GeneralRe: Extracting .zip files Pin
Vipul Mehta16-Oct-07 18:27
Vipul Mehta16-Oct-07 18:27 
AnswerRe: Extracting .zip files Pin
Shahar Gvirtz16-Oct-07 8:44
Shahar Gvirtz16-Oct-07 8:44 
AnswerRe: Extracting .zip files Pin
Vipul Mehta16-Oct-07 18:33
Vipul Mehta16-Oct-07 18:33 
AnswerRe: Extracting .zip files Pin
rtalan17-Oct-07 1:20
rtalan17-Oct-07 1:20 
GeneralRe: Extracting .zip files Pin
Vipul Mehta17-Oct-07 20:28
Vipul Mehta17-Oct-07 20:28 
AnswerRe: Extracting .zip files Pin
Mike Dimmick17-Oct-07 2:53
Mike Dimmick17-Oct-07 2:53 
QuestionVisual C++ with .NET Framework Pin
prithaa15-Oct-07 23:31
prithaa15-Oct-07 23:31 
AnswerRe: Visual C++ with .NET Framework Pin
Pete O'Hanlon16-Oct-07 2:15
mvePete O'Hanlon16-Oct-07 2:15 
AnswerRe: Visual C++ with .NET Framework Pin
rtalan17-Oct-07 0:25
rtalan17-Oct-07 0:25 
GeneralRe: Visual C++ with .NET Framework Pin
prithaa17-Oct-07 19:08
prithaa17-Oct-07 19:08 
GeneralRe: Visual C++ with .NET Framework Pin
rtalan18-Oct-07 0:19
rtalan18-Oct-07 0:19 
Question.NETCF compliance test? Pin
Member 9615-Oct-07 17:57
Member 9615-Oct-07 17:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.