Skip to main content
Known Participant
April 29, 2008
Question

Indesign CS3: How to get the current document name?

  • April 29, 2008
  • 17 replies
  • 1781 views
Hallo!

How do I get the name of the current document loaded in Indesign?

Thanks,
Alois Blaimer
This topic has been closed for replies.

17 replies

Known Participant
June 28, 2008
int32 styllist=paraStyleNameTable->GetNumStyles();
CAlert::WarningAlert("style length:"+styllist);

i cant able to get the parastyles length by the above coding
how to get the paragraph styles length and its names?

thanks
subha
Known Participant
June 26, 2008
how to get the paragraph style names one by one in alert

thanks
subha
Known Participant
June 26, 2008
Include this file
TextID.h
Known Participant
June 26, 2008
i got the result,the error is due to workspace interface missing

by
subha
Known Participant
June 26, 2008
InterfacePtr<IStyleNameTable> styleNameTable_para(theDocument->GetDocWorkSpace(), IID_IPARASTYLENAMETABLE); <br /><br />got an error :<br /><br /> error C2065: 'IID_IPARASTYLENAMETABLE' : undeclared identifier<br /><br />how to declar IID_IPARASTYLENAMETABLE?<br /><br />thanks<br />subha
Known Participant
June 26, 2008
k ya i got that, how to get the paragraph styles from the palette, and identify the unused para styles?

thanks
subha
Participating Frequently
June 26, 2008
IActiveContext *iContext = gSession->GetActiveContext();

IDocument *iDoc = iContext->GetContextDocument();

if(iDoc) {

PMString theDocName(iDoc->GetName());

}


I hope this will help you,

Hans-Juergen
Known Participant
June 26, 2008
k sure, and am not sir k.

suba_oviya@yahoo.com

by
subha
Known Participant
June 26, 2008
your welcome sir,
If you don't mind plz give me your personal email id.
we may be helpful for each other in future aswell
Known Participant
June 26, 2008
rizwan its working cent percent, thanks a lot friend

subha